Example #1
0
 public function dispatchLoopStartup(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response)
 {
     $view = new View();
     $config = Yaf_Registry::get('config');
     if (!empty($config->path->view)) {
         $view->setScriptPath($config->path->view);
     }
     Yaf_Dispatcher::getInstance()->setView($view);
 }