db->adapter, $config->db->config->toArray()); Zend_Db_Table::setDefaultAdapter($db); //$db->query('SET NAMES utf8'); $db->query('SET CHARACTER SET utf8'); Zend_Registry::set(DB, $db); Zend_Registry::set(DB_ACCESS, new DB_Access()); // Smarty template engine $view = new Zend_View_Smarty(); Zend_Registry::set(SMARTY, $view); // setup controller $frontController = Zend_Controller_Front::getInstance(); $frontController->throwExceptions(true); //echo $frontController->getControllerDirectory(); //$frontController->setBaseUrl('http://test.obchodcz.cz/'); $frontController->setControllerDirectory('./application/controllers'); //echo $frontController->getControllerDirectory(); $frontController->setParam('noViewRenderer', true); $frontController->setParam('noErrorHandler', false); $frontController->setDefaultControllerName("novinky"); // run! $frontController->dispatch(); ?>