コード例 #1
0
ファイル: Controller.php プロジェクト: kwakucsc/php_framework
 /**
  * Turns your class into a controller to allow it call views and perform other controller functions
  * @param $controller_name string the name of the controller
  */
 function __construct($controller_name)
 {
     parent::__construct();
     $this->ini($controller_name);
     $this->session = new session('_k&a', false);
     $this->view = new View();
     $this->upload = new upload_engine();
     $this->model = !empty($controller_name) ? $this->load_model($controller_name) : null;
 }
コード例 #2
0
ファイル: index.php プロジェクト: ZeitZumSterben/website-cms
 function __destruct()
 {
     parent::__destruct();
     //Destruct
 }
コード例 #3
0
ファイル: View.php プロジェクト: kwakucsc/php_framework
 /**
  * Provides access to views
  */
 function __construct()
 {
     parent::__construct();
 }