|
|||
|
class UsersController extends Zend_Controller_Action
{ // protected $_flashMessenger=null; function init() { $this->view->baseUrl=$this->_request->getBaseUrl(); $this->initView(); //$response = $this->getResponse(); // $this->_helper->layout()->sidebar=$this->view->action('index','right'); //$response->insert('sidebar', $this->view->action('index','right')); } function postDispatch() { $this->_helper->layout()->sidebar=$this->view->action('index','right'); } i got <?php echo $this->layout()->content; ?> <?php echo $this->layout()->sidebar; ?> in my layout.phtml and my problem is that if i use that assignment in postDispatch function my content doesn't show, if i comment the assignment in postDispatch function i get the content. weird, huh? |
![]() |
| Thread Tools | |
| Display Modes | |
|
|