-- steven truppe <[EMAIL PROTECTED]> wrote
(on Thursday, 23 August 2007, 07:40 PM +0200):
> i'm new to the zend framework and try to get the smarty wrapper from the  
> documentation work with the ViewRenderer helper that is used per default.
> 
> I want the same behavious for dispatching and finding view scripts, i just  
> want to render with Smarty_View instead of Zend_View so i don't have to  
> create the view each time in the controller.

I'm doing this now for a project. The main thing is that your Zend_View
Smarty wrapper needs to provide the full path to the file -- smarty
likes all templates to be in the same tree, instead of scattered across
multiple trees, but allows you to get around this with full paths.

> Later it may be interesting to change the dispatch process to limit the  
> possible urls to only valid ones, this should be done in the bootstrap  
> file in general.. or am i wrong ?

That's what the ErrorHandler plugin is for -- it's basically a 404
handler (controller or action does not exist => forwards to error
handler).

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

Reply via email to