php - add/call widget in default.tpl layout socialengine -


I am new to programming zend and socialengine. I have default.tpl layouts such as:

  & Lt; Body id = "global_page_ & lt; php echo $ identity?" & Gt; & Lt; Div id = "global_header" & gt; & Lt ;? Php echo $ this- & gt; Content ('Header')? & Gt; & Lt; / Div & gt; & Lt; Div id = 'global_wrapper' & gt; & Lt; Div id = 'global_content' & gt; & Lt; Div class = "widget with new class" & gt; & Lt; / Div & gt; & Lt ;? Php // echo $ this- & gt; Content ('global-user', 'first')? & Gt; & Lt ;? Php echo $ this- & gt; Layout () - & gt; material? & Gt; & Lt ;? Php // echo $ this- & gt; Content ('global-user', 'after')? & Gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div id = "global_footer" & gt; & Lt ;? Php echo $ this- & gt; Content ('footnote')? & Gt; & Lt; / Div & gt; & Lt; Div id = "janrainEngageShare" style = "display: none" & gt; Share & lt; / Div & gt; & Lt; / Body & gt;  

I want to add widget / call widget and call it and lt; Div class = "new class contain widget" & gt; & Lt; / Div & gt; Tags For example, I want to add widget menus and search widget from core menu in this menu, how can I get this? Need your help.

It is very easy to replace the core.menu-main with the name of your widget using the following code Do:

  & lt; Div class = "new class widgets" & gt; & Lt ;? Php echo $ this- & gt; Content () - & gt; Render widget ("core.menu-main"); ? & Gt; & Lt; / Div & gt;  

Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -