Beispiel #1
0
 /**
  * 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());
 }
Beispiel #2
0
 /**
  * @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());
 }