View Single Post
  #2 (permalink)  
Old 12-31-2007, 04:41 AM
blurphp blurphp is offline
Junior Member
 
Join Date: Dec 2007
Posts: 11
Send a message via MSN to blurphp Send a message via Yahoo to blurphp
Default

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;
Reply With Quote