Note that there are some explanatory texts on larger screens.

plurals
  1. POInvalid controller specified - Zend Framework
    text
    copied!<p>Yeah I have already visited the forums &amp; tried to solve the bug. PLease I really need a little help here.</p> <p>Whenever I am trying to access the <a href="http://domain.com/dashboard/index/index/" rel="nofollow">http://domain.com/dashboard/index/index/</a></p> <p>I receive an error <code>Invalid controller class ("Dashboard_IndexController")</code> </p> <p>There are two modules in my application Main (default) &amp; Dashboard</p> <p>My Application.ini</p> <pre><code>[bootstrap] autoloadernamespaces[] = "Zend_" autoloadernamespaces[] = "WOW_" phpSettings.display_startup_errors = 1 phpSettings.display_errors = 1 includePaths.library = APPLICATION_PATH "/../library" bootstrap.path = APPLICATION_PATH "/Bootstrap.php" bootstrap.class = "Bootstrap" resources.frontcontroller.moduledirectory = APPLICATION_PATH"/modules" resources.frontcontroller.defaultmodule = "main" resources.frontcontroller.params.prefixDefaultModule = true resources.frontController.params.displayExceptions = 0 resources.frontcontroller.throwerrors = false resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts" resources.layout.layout = "main" resources.view[] = resources.modules[] = </code></pre> <p>Bootstrap.php</p> <pre><code>&lt;?php class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { protected $_logger; protected $_resourceLoader; public $frontController; protected function _initLogging() { $this-&gt;bootstrap('frontController'); // $this-&gt;frontController = $this-&gt;getResource('frontController'); $logger = new Zend_Log(); $writer = 'production' == $this-&gt;getEnvironment() ? new Zend_Log_Writer_Stream(APPLICATION_PATH . '/../data/logs/app.log') : new Zend_Log_Writer_Firebug(); $logger-&gt;addWriter($writer); $filter = new Zend_Log_Filter_Priority(Zend_Log::CRIT); $logger-&gt;addFilter($filter); $this-&gt;_logger = $logger; Zend_Registry::set('log', $logger); } protected function _initDoctype() { $this-&gt;bootstrap('view'); $view = $this-&gt;getResource('view'); $view-&gt;doctype('XHTML1_STRICT'); } protected function _initDbProfiler() { $this-&gt;_logger-&gt;info('Bootstrap ' . __METHOD__); if ('production' !== $this-&gt;getEnvironment()) { $this-&gt;bootstrap('db'); $profiler = new Zend_Db_Profiler_Firebug('All DB Queries'); $profiler-&gt;setEnabled(true); $this-&gt;getPluginResource('db')-&gt;getDbAdapter()-&gt;setProfiler($profiler); } } protected function _initConfig() { $this-&gt;_logger-&gt;info('Bootstrap ' . __METHOD__); Zend_Registry::set('config', $this-&gt;getOptions()); } protected function _initRoutes() { $this-&gt;_logger-&gt;info('Bootstrap ' . __METHOD__); $this-&gt;bootstrap('frontController'); $router = $this-&gt;frontController-&gt;getRouter(); // Admin context route $route = new Zend_Controller_Router_Route( 'dashboard', array( 'action' =&gt; 'index', 'controller' =&gt; 'index', 'module' =&gt; 'dashboard', 'isAdmin' =&gt; true ) ); $router-&gt;addRoute('dashboard', $route); } protected function _initDefaultModuleAutoloader() { $this-&gt;_logger-&gt;info('Bootstrap ' . __METHOD__); $this-&gt;_resourceLoader = new Zend_Application_Module_Autoloader(array( 'namespace' =&gt; 'Main', 'basePath' =&gt; APPLICATION_PATH . '/modules/main', )); $this-&gt;_resourceLoader-&gt;addResourceTypes(array( 'modelResource' =&gt; array( 'path' =&gt; 'models/resources', 'namespace' =&gt; 'Resource', ), 'form' =&gt; array( 'path' =&gt; 'forms', 'namespace' =&gt; 'Form', ), 'service' =&gt; array( 'path' =&gt; 'services', 'namespace' =&gt; 'Service', ), )); /* $this-&gt;frontController-&gt;setControllerDirectory(array( 'default' =&gt; APPLICATION_PATH .'/modules/main/controllers', 'dashboard' =&gt; APPLICATION_PATH .'/modules/dashboard/controllers', )); yeah I tried this too.... */ } /** * function autoloads the different modules */ protected function _initModuleLoader() { $this-&gt;_logger-&gt;info('Bootstrap ' . __METHOD__); $this-&gt;_resourceLoader = new Zend_Application_Module_Autoloader(array( 'namespace' =&gt; 'Dashboard', 'basePath' =&gt; APPLICATION_PATH . '/modules/dashboard', )); $this-&gt;_resourceLoader-&gt;addResourceTypes(array( 'modelResource' =&gt; array( 'path' =&gt; 'models/resources', 'namespace' =&gt; 'Resource', ), /* 'form' =&gt; array( 'path' =&gt; 'form', 'namespace' =&gt; 'Form', ), 'service' =&gt; array( 'path' =&gt; 'services', 'namespace' =&gt; 'Service', ), */ )); } /** * Add Controller Action Helpers */ protected function _initActionHelpers() { $this-&gt;_logger-&gt;info('Bootstrap ' . __METHOD__); // Zend_Controller_Action_HelperBroker::addHelper(new WOW_Controller_Helper_Acl()); // Zend_Controller_Action_HelperBroker::addHelper(new SF_Controller_Helper_RedirectCommon()); // Zend_Controller_Action_HelperBroker::addHelper(new SF_Controller_Helper_Service()); } } </code></pre> <p>Any Idea. Thanks for ur support</p> <p>Ok Guys I took care of that. That some path problem at loading time</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload