Jason Qi wrote:
> Hi,
> 
> I'd like to recommend you implement Zend_View interface instead of
> extend the abstract class and the render method can be simply like this
> without any problem:
> 
>  public function render($name)
>     {
>         return $this->_smarty->fetch($name);
>     }
> 
> if you look into Smarty's source code, you will find the display() method 
> calls fetch() 
> and prints the output.
> 
> Just my two cents.
> 
> Jason.

I agree. It's much easier to implement the interface for a non-php based

My take:

http://akrabat.com/2006/12/23/extending-zend_view_interface-for-use-with-smarty/

Regards,

Rob...

Reply via email to