Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set custom template path to render instead of standard one

Is it possible in ZendFramework to set custom template when I call some action ? For example I call /category/show/id/123 and View is rendering /category/show.html file.

I want to be able to render anonther template - /category/showOther.html.

What should I do ?

like image 661
hsz Avatar asked Jun 29 '10 08:06

hsz


1 Answers

Sure. In your ControllerAction do this:

$this->_helper->viewRenderer('showOther');  
like image 107
opHASnoNAME Avatar answered Sep 28 '22 18:09

opHASnoNAME