/** * Application start */ public function run() { $route = $this->getRoute(); $controller = $route->getController($this); $action = $route->getActionName(); View::setAdapter($route->getAdapter()); View::set($controller->{$action}()); View::show($route->getTemplate()); }
/** * @return string */ public function getHtml() { $vars = $this->getHandler()->getVars(); $this->formatBacktrace($vars['stack']); $this->convertTypeToString($vars['type']); View::set($vars); return View::get($this->getTemplate()); }