首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >有多个方法的zend view helper?

有多个方法的zend view helper?
EN

Stack Overflow用户
提问于 2011-05-13 20:36:16
回答 3查看 5.8K关注 0票数 18
代码语言:javascript
复制
class My_View_Helper_Gender extends Zend_View_Helper_Abstract
{
  public function Gender()
  {
    //
  }
}

"The class method (Gender()) must be named identically to the concliding part 
 of your class name(Gender).Likewise,the helper's file name must be named 
 identically to the method,and include the .php extension(Gender.php)"
 (Easyphp websites J.Gilmore)

我的问题是:视图帮助器可以包含多个方法吗?我可以从我的帮助器中调用其他视图帮助器吗?

谢谢

卢卡

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5991926

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档