public function dispatchLoopStartup(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) { $view = new TZ_View(); $view->setCacheEnable(true); $view->setScriptPath(APP_PATH . '/application/modules/' . $request->getModuleName() . '/views'); Yaf_Dispatcher::getInstance()->setView($view); }
/** * 获取缓存系统的驱动对象 * * @return object */ private function _getCacheDriver() { if (null !== self::$_cacheDriver) { return self::$_cacheDriver; } return self::$_cacheDriver = TZ_Redis::connect('user'); }