Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.13

Request #1272 Request emptyCompiledTemplateDir
Submitted: 2004-04-23 19:04 UTC
From: ahundiak Assigned: alan_k
Status: Closed Package: HTML_Template_Flexy
PHP Version: Irrelevant OS: NA
Roadmaps: (Not assigned)    
Subscription  


 [2004-04-23 19:04 UTC] ahundiak at ingr dot com
Description: ------------ Web user permission issues can make it difficult to clean up compiled template directories. Request a method to make it easier. Also request that a file permissions option be added.

Comments

 [2004-04-24 02:40 UTC] alan_k
eak: more options ;) ** - I think this may be better: $flexy->compile('template'); HTML_Template_Flexy_Tools::changePerms($flexy,0666); and a few extra things like: HTML_Template_Flexy_Tools::compileAll($flexy); HTML_Template_Flexy_Tools::deleteCache($flexy);
 [2004-04-25 14:31 UTC] ahundiak at ingr dot com
The permissions mode really should be an option so it can be adjusted via a config file for debugging. What would be really nice would be to move all the potientally "insecure" options like the ones that allow embedding php code into templates into flexy methods. I for one really don't want to give users that much power and it makes me a bit nervous that they might somehow adjust the config settings.
 [2004-04-25 14:37 UTC] ahundiak at ingr dot com
Please disregard my previous comment about setting file permissions in a config file. I didn't understand your proposal. HTML_Template_Flexy_Tools::changePerms is fine. The comment about removing "insecure" options still stands. Probably should be a different feature request.
 [2004-07-24 04:38 UTC] alan_k
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. require_once 'HTML/Template/Flexy/Translator.php'; $x = new HTML_Template_Flexy_Translator( $flexy->options); $x->clearTemplateCache();