PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_Template_Flexy » Bug #1115

More than one template

Details

Submitted2004-04-02 12:53 UTC
Frominfo at rhalff dot com
Assignedalan_k
StatusClosed
PackageHTML_Template_Flexy
PHP VersionIrrelevant
Roadmaps(Not assigned)

Comments

[2004-04-02 12:53 UTC] info at rhalff dot com

Description:
------------
This is more of a feature request then a bug.

For error handling I use a template called error.html,
I would like the modules in my system to be able to define their own error.html template and if that's not present use the default one.

I tried to accomplish this by using multiple template dirs, the first one is the module template dir and the second one the core template dir. I get the following error:

You have more than one template Named error.html in your paths, found in both
/usr/lib/php/RHALFF/App/Poems/Templates/error.html
/usr/lib/php/RHALFF/Core/Templates/error.html

Preferred behaviour for me would be to use the first template found. If the current situation is preferred behaviour for other developers, it would be nice if there was a configuration directive to make this possible.

Thanks in advance.

Rob Halff