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);
}
精彩评论