Home > centOS, Fedora 12, PHP, Unix/Linux, Zend > Zend zend_layout

Zend zend_layout

Zend_Layout:

tips1:

// application/layouts/scripts/default.phtml

$this->_helper->layout()->setLayout(‘default’);

tips2:

$this->_flashMessenger = $this->_helper->getHelper(‘FlashMessenger’);

$this->_flashMessenger->addMessage(‘We did something in the last request’);

$this->view->messages = $this->_flashMessenger->getMessages();

tips 3:

// Controller > put >

$response = $this->getResponse();

// application/views/scripts/sidebar.phtml

$response->insert(‘sidebar’, $this->view->render(‘sidebar.phtml’));

// layout put this:

      <?php echo $this->layout()->sidebar; ?>
Advertisements
Categories: centOS, Fedora 12, PHP, Unix/Linux, Zend
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: