Accessing the layout() in Zend Framework

Actually there are two syntactic valid ways to access the layout() helper of the Zend_View.

First one is the more clean way:

$this->view->layout()

While the second calls the _helper member variable

$this->_helper->layout()

Related posts:

  1. Zend Framework – Disable Zend Layout
  2. Download Files with Zend Framework
  3. JSON and Zend Framework? – Zend_Json
This entry was posted in micro tutorial, PHP, zend framework and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">