Re: [SMARTY] use 1 compile directory for 2 template directories?

From: Date: Tue, 27 Aug 2002 14:03:29 +0000
Subject: Re: [SMARTY] use 1 compile directory for 2 template directories?
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5838@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 I just wonder why Smarty doesn't do this job. Using realpath() when calculating the CRC would unify path/to/index.tpl and path/to/another/index.tpl (currently, only the index.tpl that is first compiled gets fetched). Index: Smarty.class.php 1498c1498 < $_crc32 = crc32($auto_source) . $_dir_sep; --- > $_crc32 = crc32(realpath($auto_source)) . $_dir_sep; Or do I break some caching or whatever features here!? ·SMK·

« previous php.smarty.general (#5838) next »