public function findModel($model)
    {
        $file = $this->basePath("app/Model/$model.php");
        if($this->findFile($file)) {
            return $file;
        }
        else {
            throw new Exception($file." Model file is missing.");
            exit;
        }
    }
public function findModel($model)
    {
        $file = $this->basePath("app/Model/$model.php");
        if($this->findFile($file)) {
            return $file;
        }
        else {
            throw new Exception($file." Model file is missing.");
            exit;
        }
    }
public function findModel ( $ model ) { $ file = $ this -> basePath ( "app/Model/$model.php" ) ; if ( $ this -> findFile ( $ file ) ) { return $ file ; } else { throw new Exception ( $ file . " Model file is missing." ) ; exit ; } }
Find a Model.

@param   string  $model
@return  string  full model file path
@throws  Exception
Find a Model .