Did you set your include_path?
Quote:
<?php
require_once 'zend/library/Zend/Controller/Front.php';
Zend_Controller_Front::run('zend/application/controllers');
?>
|
I have my include path set like this
Code:
set_include_path(dirname(__FILE__) . '/library'. PATH_SEPARATOR . './application/models/' . PATH_SEPARATOR . get_include_path());
date_default_timezone_set('America/Chicago');
I use the Autoloader to load the classes so they are available
Code:
require'Zend/loader.php';
Zend_Loader::registerAutoload();
Then all I do is call the class and everything is there
Code:
$front = Zend_Controller_Front::getInstance();
$front->setControllerDirectory('/path/to/app/controllers');
$front->dispatch;