Re: Re: Flexy feedback
| From: | Demian Turner | Date: | Thu, 11 Dec 2003 10:19:25 +0000 |
| Subject: | Re: Re: Flexy feedback | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-9472@lists.php.net to get a copy of this message | ||
hi alan
i've attached a very small patch for flexy you may want to consider, basically
i've just added an array_unique to the array of posible template paths to be
checked, Flexy.php:384
hopefully the logic i've followed that's brought about the need for this patch
is typical enough so it can be included in the main code.
basically i have a codebase with a number of modules, and each module has it's
own templates dir for ease of installation. but all templates require default
templates, header/footer, etc, that are found in the 'default' module which is
passed in as a second search path.
however the default module has non-global templates, like a home page, etc, so
when compiling templates for this module flexy errored out because the same
search path appeared twice, something the array_unique() fixes.
let me know what you think
cheers
demian