【发布时间】:2010-10-16 14:08:51
【问题描述】:
作为an earlier question 的后续行动,我想知道是否有人知道为什么 Magento 模板都用下划线声明其变量。模板是来自Mage_Core_Block_Template::fetchView() 的.phtml 文件include-ed,它们的局部变量在函数结束时被处理掉,永远不会变成全局变量。
那么下划线的意义何在?
【问题讨论】:
标签: templates magento naming-conventions