Bluz\Controller\Controller::setFile PHP Method

setFile() protected method

Setup controller file
protected setFile ( ) : void
return void
    protected function setFile()
    {
        $path = Application::getInstance()->getPath();
        $file = $path . '/modules/' . $this->module . '/controllers/' . $this->controller . '.php';
        if (!file_exists($file)) {
            throw new ControllerException("Controller file not found '{$this->module}/{$this->controller}'", 404);
        }
        $this->file = $file;
    }