Location: PHPKode > projects > ICamp Codebase > videowiki_0.7/index.php
<?php
header('Content-Type: text/html; charset=utf-8');

/**
 * 		Set Errors reporting.	
 */
error_reporting(E_ALL|E_STRICT);
date_default_timezone_set('Europe/Vilnius');
ini_set('display_errors', 1);
// Set the include path
        set_include_path(
              dirname(__FILE__) . '/library'
            . PATH_SEPARATOR
            . get_include_path()
        );

/**
 * 		Zend Loader
 */
require('Zend/Loader.php');


/**
 * 		Requered Classes
 */
Zend_Loader::loadClass('Zend_Config_Ini');
Zend_Loader::loadClass('Zend_Controller_Front');
Zend_Loader::loadClass('Zend_Db');
Zend_Loader::loadClass('Zend_Db_Table');
Zend_Loader::loadClass('Zend_View');
Zend_Loader::loadClass('Zend_Registry');
Zend_Loader::loadClass('Zend_Debug');
Zend_Loader::loadClass('Zend_Auth');
Zend_Loader::loadClass('Zend_Form');


/**
 * 		Config Ini
 */
$config = new Zend_Config_Ini('app/etc/config.ini', 'DevelopmentMode');

/**
 * 		Setup Controllers
 */
$db = Zend_Db::factory($config->database->adapter, $config->database->params->toArray());
Zend_Db_Table::setDefaultAdapter($db);
Zend_Registry::set('db', $db);

$front = Zend_Controller_Front::getInstance();
$front->setControllerDirectory('app/controllers');
$front->throwExceptions(false);



/**
 * 		Show is begin...
 */
$front->dispatch();

?>
Return current item: ICamp Codebase