Example #1
0
File: View.php Project: pr-of-it/t4
 public function setController(Controller $controller)
 {
     $this->controller = $controller;
     if (method_exists($this->renderer, 'setController')) {
         $this->renderer->setController($controller);
     }
 }
Example #2
0
 public final function __construct()
 {
     $this->data = new Std();
     $this->app = Application::getInstance();
     $this->view = new View('twig', $this->getTemplatePaths());
     $this->view->setController($this);
 }