-- Rob Allen <[EMAIL PROTECTED]> wrote
(on Tuesday, 21 August 2007, 09:41 PM +0100):
> appel wrote:
> > One more thing.
> > I was wondering how you would incorporate Smarty support in that little
> > example.
> > 
> > I'm thinking about using the Smarty class shown on this page:
> > http://framework.zend.com/manual/en/zend.view.scripts.html#zend.view.scripts.templates
> > 
> > I do wonder where I would put the "Zend_View_Smarty" class, how to load it
> > etc.
> > 
> 
> I would call the class View_Smarty and have a directory called
> "app/classes" on the path. Hence View_Smarty would live in
> app/classes/View/Smarty.php.
> 
> Another alternative is to pick a prefix, e.g. "Appel" for your classes
> and create a directory under lib. In this case, you would have
> Appel_View_Smarty living in lib/Appel/View/Smarty.php

I *HIGHLY* recommend choosing a prefix, as it makes your code more
portable. 

-- 
Matthew Weier O'Phinney
PHP Developer            | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to