public function __construct($config = []) { $this->config = array_merge($this->config, $config); if (empty($this->config['view_path'])) { $this->config['view_path'] = App::$modulePath . 'view' . DS; } $this->template = new Template($this->config); }