Jump to content

Dynamic content in zend layout


murli800

Recommended Posts

hi all..i am new to zend..i want to know how to render dynamic content in my layout.phtml,,

 

 

this is my layout.phtml

<body class="claro">

<div dojoType="dijit.layout.BorderContainer" style="width:99%; height:99%; margin:auto;">

<div dojoType="dijit.layout.ContentPane" style="height:15%;" splitter="true" region="top">

where to put file so that i can render that here

</div>

<div dojoType="dijit.layout.ContentPane" style="width:20%;" splitter="true" region="leading">

where to put file so that i can render that here

</div>

 

<div dojoType="dijit.layout.ContentPane" splitter="true" region="center">

<?php echo $this->layout()->content;?>

 

</div>

<div dojoType="dijit.layout.ContentPane" style="width:20%;" splitter="true" region="right">

where to put file so that i can render that here

</div>

 

<div dojoType="dijit.layout.ContentPane" style="height:5%;" splitter="true" region="bottom">

where to put file so that i can render that here

</div>

</div>

 

Link to comment
https://forums.phpfreaks.com/topic/249363-dynamic-content-in-zend-layout/
Share on other sites

If you want AJAX style dynamic and since you're using dojo, you could use the href attribute of ContentPane and point to an action/view.

 

If you just want to insert sub-views, you can use the Zend_View's helper function partial().

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.