how to have two controller actions, one shared view for Zend_Controller_Action Class?
Posted
by arendn
on Stack Overflow
See other posts from Stack Overflow
or by arendn
Published on 2009-09-11T17:18:17Z
Indexed on
2010/03/28
23:03 UTC
Read the original article
Hit count: 205
Hi Guys,
How do you specify a custom view script for a given Controller Action method?
For example:
Class UserGalleryController extends Zend_Controller_Action
{
public function fooAction()
{
$this->view->actionMsg = 'foo';
// (uses foo.phtml automagically)
}
public function barAction()
{
$this->view->actionMsg = 'bar';
//use foo's view script ?????
}
}
I basically want to have one view script (foo.phtml)
Thanks :-)
© Stack Overflow or respective owner