Re: New thread - Template base class design

From: Date: Fri, 11 Jun 2004 18:26:44 +0000
Subject: Re: New thread - Template base class design
References: 1  Groups: php.pear.dev php.pear.dev 
Request: Send a blank email to pear-dev+get-30513@lists.php.net to get a copy of this message
Greg Beaver wrote:
We need a new thread
And the focus got lost again by of-topic discussions ;-) Anyway. Back to the main subject here, to summarize: 1. Base template should be compliant with/implement the template engine API as defined (or whatever everyone agrees is the most flexible and retrofitable with existing engines.) I would assume that the API is almost finalized except maybe for dropping the "toFile()" method and renaming openTemplate() to "open()"... Although the "open" word may be out of place when the method actually accepts an object... Would "useTemplate()" be better suited??? 2. Base template should/could/would(?) provide an "easy" member assignment approach to passing data, though, I got to say that I have a gut feeling that it's not a good idea... 3. Work under PHP4 and PHP5, with added bonus for possibly PHP5 features (but not breaking PHP4). i.e. __get() and __set() are available in PHP4 but "experimental"... 4. Be able to accomodate several template philosophies: declarative (i.e. Flexy, Savant...) and imperative (ie. IT, Sigma...), other (XML...)? 5. To be extendable / reusable for non-text generating package (i.e. images, PDF, Flash... whatever...) 6. Find a way for easy QuickForm integration. 7. Be simple and fast. Did anyone provide a Wiki for that? I can't find the thread... Did I get everything right? -Philippe

« previous php.pear.dev (#30513) next »