public function __construct() { $config = Config::getInstance('config')->all(); $this->template = TemplateFactory::make($config['view'], $config['app_name']); }