I have a module named Admin in my zend project.I am redirecting to the action named viewAction of the controller named DeliveryCentersController by using
$this->_helper->redirector->gotoSimple('view','deliveryCenters','Admin',array('param1' => 'test'));
Now in viewAction of deliveryCentersController I have following:
class Admin_DeliveryCentersController extends Zend_Controller_Action
{
public function viewAction()
{
$region=new Admin_Model_DbTable_Region();
$this->view->dc=$region->getDeliveryCenters();
// action body
}
}
here I have a class named Admin_Model_DbTable_Region in admin module in model/DbTable folder.
Now execution is redirected to viewAction of admin module but saying error as
Fatal error: Class ‘Admin_Model_DbTable_Region’ not found in C:\Users\398853\Documents\NetBeansProjects\MST\application\modules\Admin\controllers\DeliveryCentersController.php on line 19
Plz resolve this error.Thanks in advance.
add this in your application.ini:
and add the Bootstrap.php file in your modules admin: