3 /* Report all errors directly to the screen for simple diagnostics in the dev environment */
4 error_reporting(E_ALL | E_STRICT
);
5 ini_set('display_startup_errors', 1);
6 ini_set('display_errors', 1);
8 /* Add the Zend Framework library to the include path so that we can access the ZF classes */
9 set_include_path(dirname(__FILE__
).'/../library' . PATH_SEPARATOR
. dirname(__FILE__
).'/../texts' . PATH_SEPARATOR
. get_include_path());
11 define('DATA_DIR', dirname(__FILE__
).'/../public/data');
13 date_default_timezone_set( 'Europe/Prague' );
15 /* Set up autoload so we don't have to explicitely require each Zend Framework class */
16 require_once "Zend/Loader.php";
17 Zend_Loader
::registerAutoload();
19 Zend_Layout
::startMVC();
21 /* Set the singleton instance of the front controller */
22 $frontController = Zend_Controller_Front
::getInstance();
23 /* Disable error handler so it doesn't intercept all those errors we enabled above */
24 $frontController->throwExceptions(true);
25 /* Point the front controller to your action controller directory */
27 $frontController->addModuleDirectory(dirname(__FILE__
).'/modules');
30 $frontController->setControllerDirectory(
32 'default' => dirname(__FILE__).'/default/controllers',
33 'faktury' => dirname(__FILE__).'/faktury/controllers',
34 'nastaveni' => dirname(__FILE__).'/nastaveni/controllers'
37 $frontController->registerPlugin( new Plugin_Initialization() );
38 $frontController->registerPlugin( new Plugin_Database() );
39 $frontController->registerPlugin( new Plugin_Routing() );
41 //$frontController->setBaseUrl('/robportal/public');
43 Zend_Registry
::set( 'map_atlas', false );
45 /* OK, do your stuff, front controller */
46 $frontController->dispatch();