'localhost', 'username' => 'root', 'password' => '', 'dbname' => 'test', 'charset' => 'cp1251' ) ) ); Zend_Registry::set( 'layout', Zend_Layout::startMVC( array( 'layout' => 'index', 'layoutPath' => APPLICATION_PATH.'/views/layouts' ) ) ); $front = Zend_Controller_Front::getInstance(); $front->setControllerDirectory(APPLICATION_PATH.'/controllers'); $front->getRouter()->addRoute( 'ajax', new Zend_Controller_Router_Route( 'ajax/:action', array( //'action' => ':action', 'controller' => 'ajax', ) ) ); //$front->setParam('noErrorHandler', true); //$front->setParam('noViewRenderer', true); //$front->throwExceptions(true); $front->dispatch(); } catch ( Exception $e ) { print 'Exception: '.$e->getMessage(); }