public function __construct($controller, $viewPath = null) { $this->controller = $controller; $this->viewPath = $viewPath; }