嗨某人!
我有一个想在 Zend Framework 中解决的问题。情况如下:我有一个 indexController,我在其中放置了一个 getAktGroupMailAction - 我的 ACL 上有什么 - 就像这里:
public function getAktGroupMail(){
$ggroup = new Application_Model_DbTable_Groups();
//return $groupN = $ggroup->getUserAktGroupMail();
}
如果我没有在单词“return”之前放置“//”字符,我会收到错误消息:
致命错误:在 /var/www/hobu/library/Zend/Acl.php:365 中未捕获的异常 'Zend_Acl_Exception' 和消息 'Resource 'error' not found' 堆栈跟踪:#0 /var/www/hobu/library/Zend /Acl.php(846): Zend_Acl->get('error') #1 /var/www/hobu/application/plugins/AccessCheck.php(19): Zend_Acl->isAllowed('user', 'error', '错误') #2 /var/www/hobu/library/Zend/Controller/Plugin/Broker.php(309): Application_Plugin_AccessCheck->preDispatch(Object(Zend_Controller_Request_Http)) #3 /var/www/hobu/library/Zend /Controller/Front.php(941): Zend_Controller_Plugin_Broker->preDispatch(Object(Zend_Controller_Request_Http)) #4 /var/www/hobu/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch() #5 /var/www/hobu/library/Zend/Application.php(366):Zend_Application_Bootstrap_Bootstrap->run() #6 /var/www/hobu/public/index.php(26): Zend_Application->run() #7 {main} Next exception 'Zend_Controller_Exception' with message 'Resource 'error' not found# 0 /var/www/hobu/library/Zend/Acl.php(846): Zend_Acl->get('error') #1 /va in /var/www/hobu/library/Zend/Controller/Plugin/Broker。第 312 行的 php
有人可以帮助我吗?