compile_id doesn't work?
| From: | Ralph Meijer | Date: | Mon, 31 Dec 2001 15:59:37 +0000 |
| Subject: | compile_id doesn't work? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-2456@lists.php.net to get a copy of this message | ||
Hi,
I've been trying out the compile_id feature, but I didn't get it
to work without patching Smarty. As I browse through the code I see that
_get_compile_path is called to retrieve the place where the compiled
template should be stored. This method uses $this->_compile_id which
never gets set. In fetch() there is a $_smarty_compile_id which is used
for thing like checking for cache files etc, but as I see it the value
of this var should be given to $this->_compile_id.
I patched Smarty to do just that and that seems to work. Could someone
tell if I'm doing something terribly wrong or this is indeed a bug?
Greetz,
Ralphm