metadata filelist

This commit is contained in:
4ngle 2010-03-10 06:56:28 +00:00
parent 22be65d8d9
commit 7572591126
1 changed files with 2 additions and 7 deletions

View File

@ -8,11 +8,8 @@ set_include_path('.' . PATH_SEPARATOR . '../include/'
. PATH_SEPARATOR . '../application/models'
. PATH_SEPARATOR . '../application/default/controllers'
. PATH_SEPARATOR . get_include_path());
//include "Zend/Loader.php";
//Zend_Loader::registerAutoload();
require_once 'Zend/Loader/Autoloader.php';
$loader = Zend_Loader_Autoloader::getInstance();
$loader->setFallbackAutoloader(true);
include "Zend/Loader.php";
Zend_Loader::registerAutoload();
// load configuration
$config = new Zend_Config_Ini('../application/config.ini', 'general');
@ -27,8 +24,6 @@ $auth->setStorage(new Zend_Auth_Storage_Session('westdc'));
$db = Zend_Db::factory($config->db);
Zend_Db_Table::setDefaultAdapter($db);
$registry->set('db',$db);
$filedb = Zend_Db::factory($config->filelist);
$registry->set('filelist', $filedb);
// setup controller
$frontController = Zend_Controller_Front::getInstance();