Kernel/Controller.php
public function Model()
    {
        $file = $this->getAddressModel();
        if(file_exists($file)) {
            $model = $this->getClassModel();
            $this->model = new $model();
        }
    }
public function Model()
    {
        $file = $this->getAddressModel();
        if(file_exists($file)) {
            $model = $this->getClassModel();
            $this->model = new $model();
        }
    }
public function Model ( ) { $ file = $ this -> getAddressModel ( ) ; if ( file_exists ( $ file ) ) { $ model = $ this -> getClassModel ( ) ; $ this -> model = new $ model ( ) ; } }
Carrega a model
Carrega a model