AW: [SMARTY] use 1 compile directory for 2 template directories?
| From: | Mario Deutschmann | Date: | Tue, 27 Aug 2002 10:20:03 +0000 |
| Subject: | AW: [SMARTY] use 1 compile directory for 2 template directories? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-5836@lists.php.net to get a copy of this message | ||
try something like
$XXX->$compile_id = $template_dir_a_name.$template_filename;
the only important thing is to use different compile_id for templates with
same filename coming from different template directories.
greets
mario
> -----Ursprungliche Nachricht-----
> Von: SE [mailto:sendoh@anet.ne.jp]
> Gesendet: Dienstag, 27. August 2002 10:39
> An: smarty-general@lists.php.net
> Betreff: Re: [SMARTY] use 1 compile directory for 2 template
> directories?
>
>
> Thanks.
>
> but it doesn't say anything about what variable or number i
> can use for
> $compile_id.
> Any ideas?
>
>
> > Hi!
> >
> > check manual for "compile_id". that may solve you compile-problem.
> >
> > greets
> > mario
> >
> >
> >
> >
> >
> > > -----Ursprungliche Nachricht-----
> > > Von: SE [mailto:sendoh@anet.ne.jp]
> > > Gesendet: Dienstag, 27. August 2002 02:56
> > > An: smarty-general@lists.php.net
> > > Betreff: [SMARTY] use 1 compile directory for 2 template
> directories?
> > >
> > >
> > > When determining if a template file has already been compiled
> > > or not, does
> > > smarty look at the directory where the template file is stored?
> > >
> > > I have 2 $template_dir directories, and thinking of using 1
> > > $templates_c
> > > directory. It seems that sometimes smarty does not compile
> > > the file if a
> > > template file with the same name has already been compiled,
> > > which is in fact
> > > not the same template file but only with a same file name. Is
> > > this true, or
> > > is there any extra settings i need to do to make this work
> > > right? Or maybe I
> > > should just use another compile directory?
> > >
> > >
> > > --
> > > Smarty General Mailing List (http://smarty.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
> > --
> > Smarty General Mailing List (http://smarty.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>