Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to reuse methods in ZF views
    text
    copied!<p>In my application i have the following classic template on 3 columns</p> <pre><code>********************************************************* * * * * ********************************************************* * * * * * * * * * sidea * content * sideb * * * * * * * * * * * * * * * * * * * * * * * * * ********************************************************* * * * * ********************************************************* </code></pre> <p>Where the header and sideb are similar for the most part of the site (side b contents depends on the user's state so they need to be rendered dynamicaly), and sidea &amp; content changing for every controller.</p> <p>Since I'm new to ZF (1.9), I have some difficulties to implement such setting, where script views reuse common methods (for the sideb), and there is 3 different places for dynamic contents injection. Can somebody hint any tutorial/code example?</p> <p>Thanks in advance. </p> <p><strong>Edit</strong></p> <p>After some more deeper reader of zend_layout documentation and some other links (i.e. <a href="http://blog.astrumfutura.com/archives/281-Complex-Web-Pages-with-the-Zend-Framework.html" rel="nofollow noreferrer">this post</a>) i found out that i should concentrate my research in direction of Composite View pattern for zend framework, in particular Zend_View_helper_partial. Probably following two links can give me a hand (and to other folks searching the same thing)</p> <p><a href="http://survivethedeepend.com/zendframeworkbook/en/1.0/setting.the.design.with.zend.view.zend.layout.html.5.and.yahoo.user.interface.library#zfbook.setting.the.design.with.zend.view.zend.layout.html.5.and.yahoo.user.interface.library.zend.view.object.oriented.templating.layouts" rel="nofollow noreferrer">Link 1</a> <a href="http://www.rmauger.co.uk/2009/03/why-the-zend-framework-actionstack-is-evil/" rel="nofollow noreferrer">Link 2</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload