Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-10-2008, 04:35 PM
Junior Member
 
Join Date: Mar 2008
Posts: 8
Default layout()->content doesn't show when i got sidebar enabled.

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:23 PM.