开发者

zend setDefaultNamespaces in the ini

how can I put this

Zend_Filter::setDefaultNamespaces(array('App_Filter'));

in the in开发者_StackOverflow中文版i file ?

Thanks in advance.

Bye


Try something like this...

In your application.ini file, add

filterNamespaces.0 = "App_Filter"

then in your Bootstrap class

protected function _initFilterNamespaces()
{
    $namespaces = $this->getOption('filterNamespaces');
    Zend_Filter::setDefaultNamespaces($namespaces);
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜