Re: [SMARTY] Unable to Read Template
| From: | Pablo Fischer | Date: | Wed, 16 Apr 2003 13:55:31 +0000 |
| Subject: | Re: [SMARTY] Unable to Read Template | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9284@lists.php.net to get a copy of this message | ||
HI again
Thanks anyway, I solved it, I just change 2 vars, templates_dir and
compile_dir
$Template->template_dir = "../templates";
$Template->compile_dir = "../templates_c";
Thanks!
El mié, 16 de 04 de 2003 a las 13:27, Pablo Fischer escribió:
> Hi all;
>
> Im in the final steps of a project using Smarty, also I haven
> 'administration' section (the directory of this section is Admon/)..
>
> So how can I display a template? My directories are.
>
> Admon/php_files.php
> templates/zonixnuke/templates.tpl
> templates/zonixnuke/Admon/templatesadmon.tpl (templates for Admon
> section).
>
> In one of my php_Files (in Admon) Im calling the template, like this:
>
> $Template->display("zonixnuke/Admon/template.tpl");
>
> But it tolds me..
>
> Warning: Smarty error: unable to read template resource:
> "zonixnuke/Admon/admon_mostrartopics" in
> /home/unmada/Proyectos/zonixnuke/include/Smarty.class.php on line 999So
> what could be the correct path to show my templates located in
> templates/zonixnuke/Admon/tpltemplates.tpl
>
> ??
>
> Thanks!
>
> --
> Pablo Fischer <exilion@yifan.net>
--
Cioran??... jejeje