Here is my invocation code:Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (error)' in /var/www.mydomain.com/libs/Zend/Controller/D ... rd.php:241 Stack trace: #0 /var/www.mydomain.com/libs/Zend/Controller/Front.php(934): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 /var/www.mydomain.com/public/index.php(28): Zend_Controller_Front->dispatch() #2 {main} thrown in /var/www.mydomain.com/libs/Zend/Controller/D ... andard.php on line 241
Code: Select all
define('CLIQUE_APPLICATION_CLASSES_PATH', '/var/www.cliquecanada.com/core/classes/');
set_include_path(CLIQUE_LIBRARY_PATH);
//Zend_Controller_Front::run(CLIQUE_APPLICATION_CLASSES_PATH);
//Zend_Controller_Front::getInstance()->dispatch();
$front = Zend_Controller_Front::getInstance();
$front->setControllerDirectory(CLIQUE_APPLICATION_CLASSES_PATH);
$front->dispatch();Code: Select all
<?php
class IndexController extends Zend_Controller_Action{
public function indexAction()
{
echo 'This is the default action executed.';
}
}
Code: Select all
/var/www.cliquecanada.com/core/classes/IndexController.phpCode: Select all
Zend_Controller_Front Object
(
[_baseUrl:protected] =>
[_controllerDir:protected] =>
[_dispatcher:protected] => Zend_Controller_Dispatcher_Standard Object
(
[_curDirectory:protected] =>
[_curModule:protected] => default
[_controllerDirectory:protected] => Array
(
[default] => /var/www.mydomain.com/core/classes
)
[_defaultAction:protected] => index
[_defaultController:protected] => index
[_defaultModule:protected] => default
[_frontController:protected] =>
[_invokeParams:protected] => Array
(
)
[_pathDelimiter:protected] => _
[_response:protected] =>
[_wordDelimiter:protected] => Array
(
[0] => -
[1] => .
)
)
[_invokeParams:protected] => Array
(
)
[_moduleControllerDirectoryName:protected] => controllers
[_plugins:protected] => Zend_Controller_Plugin_Broker Object
(
[_plugins:protected] => Array
(
)
[_request:protected] =>
[_response:protected] =>
)
[_request:protected] =>
[_response:protected] =>
[_returnResponse:protected] =>
[_router:protected] =>
[_throwExceptions:protected] =>
)Cheers,
Alex