'templates/default/Views', 'compile_dir' => 'templates/default/Views/SmartyCompile/', 'cache_dir' => 'templates/default/Views/SmartyCache/', 'config_dir' => 'templates/default/Views/SmartyConfig/', 'left_delimiter' => '{#', 'right_delimiter' => '#}', 'caching' => 0, 'compile_check' => false ); $viewHelper = new View_Helper($view); $viewHelper->setTemplateParams($params); HelperManager::addHelper($viewHelper,'View'); // //header("Content-type: text/html; charset=utf-8"); //Default_Session::close(); $main = new Main_Controller(); $main->setControllerDirectory('templates/default/Controllers'); $main->setRouter(new Default_Router($main->getRequest(),$main->getDispatcher())); $main->process();