/**
  * ErrorController constructor.
  */
 public function __construct()
 {
     parent::__construct();
     if (Core\Request::is_api_call()) {
         $this->_view = new MVC\JSONView();
     }
 }
 /**
  * InstallController constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->parent = str_replace(DIRECTORY_SEPARATOR, '/', dirname(dirname(__FILE__)));
     $this->parent_name = basename($this->parent);
     if (strstr($this->parent, self::COMPOSER_LOCATION)) {
         $this->project = str_replace(self::COMPOSER_LOCATION, '', $this->parent);
     } else {
         $this->project = dirname($this->parent);
     }
 }