murli800 Posted October 19, 2011 Share Posted October 19, 2011 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> Quote Link to comment https://forums.phpfreaks.com/topic/249363-dynamic-content-in-zend-layout/ Share on other sites More sharing options...
thehippy Posted October 19, 2011 Share Posted October 19, 2011 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(). Quote Link to comment https://forums.phpfreaks.com/topic/249363-dynamic-content-in-zend-layout/#findComment-1280656 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.