For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > June 2005 > Re: [PEAR] Re: Compiled Flexy templates being recompiled on each request









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] Re: Compiled Flexy templates being recompiled on each request
Dan Rossi

2005-06-07, 3:56 am


On 06/06/2005, at 1:22 AM, Alan Knowles wrote:

> Check config - this should not happen..
>
> Regards
> Alan
> On Wed, 2005-06-01 at 15:16 +1000, Dan Rossi wrote:
>



Here is my config settings

array(8)_{_["templateDir"]=> string(11) "./templates" ["compileDir"]=>
string(19) "./templates/compile" ["forceCompile"]=> string(1) "0"
["debug"]=> string(1) "0" ["globals"]=> string(4) "true" ["privates"]=>
string(4) "true" ["locale"]=> string(2) "en" ["compiler"]=> string(5)
"Flexy"_}

As you can see the value is a string, because its loaded from xml
however I took that setting out, array_merged with a seperate array
with a int value of 0 still no effect, the compiled template is being
overwritten all the time ??

Dan Rossi

2005-06-07, 3:56 am


On 07/06/2005, at 1:49 PM, Alan Knowles wrote:

> I'm not sure if the use of relative paths for templateDir and
> compileDir
> is causing problems.. - can you try using
> dirname(__FILE__).'/templates'
> or similar to see if that helps?
>


Here is a Var_Dump from the object

object(HTML_Template_Flexy)#83 (6) {
_ ["options"]=>
_ array(24) {
___ ["compileDir"]=>
___ string(29) "/www/faults/templates/compile"
___ ["templateDir"]=>
___ array(1) {
_____ [0]=>
_____ string(21) "/www/faults/templates"
___ }
___ ["multiSource"]=>
___ bool(false)
___ ["templateDirOrder"]=>
___ string(0) ""
___ ["debug"]=>
___ string(1) "0"
___ ["compiler"]=>
___ string(5) "Flexy"
___ ["forceCompile"]=>
___ string(1) "0"
___ ["filters"]=>
___ array(0) {
___ }
___ ["nonHTML"]=>
_&nb.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com