Componentized Control

From: Date: Fri, 21 Feb 2003 20:45:08 +0000
Subject: Componentized Control
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8095@lists.php.net to get a copy of this message
Hi, I'm looking to get per sub-template cache lifetimes, and cache IDs but not controlled from the main PHP (as in the manual). Smarty seems to do this nicely from the PHP file, but it's not so easy from the template files. From what I gather, I may do this using {include_php} and then: // from the base PHP, only once $smarty->caching = 2; // from the included PHP, each subtemplate $this->cache_lifetime = 120; Now, getting different cache IDs frame the self contained subtemplates... would this do the trick? // from the include_php $this->compile_id = 123456; Will this accomplish what I'm trying to do? If so, it might be nice to include it in the Tips & Tricks! Thanks, Alex

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