[英]call Custom phtml in footer through local.xml
我在local.xml中的代碼
<?xml version="1.0"?>
<layout version="0.1.0">
<reference name="footer">
<block type="core/template" name="site_access" as="site_access" template="folder_name/popup.phtml"/>
</reference>
</layout>
=> footer.phtml
<?php echo $this->getChildHtml(); ?>
但是它什么也沒顯示,請幫助我。
將代碼放入local.xml()(app / design / frontend / {您的主題} /default/layout/local.xml)
<?xml version="1.0"?>
<layout version="0.1.0">
<default>
<reference name="footer">
<block type="core/template" name="mylogic" template="mylogic/mylogic.phtml"/>
</reference>
</default>
</layout>
寫在你的footer.html
<?php echo $this->getChildHtml('mylogic') ?>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.