コード例 #1
0
ファイル: mvcCore.class.php プロジェクト: phithienthan/vnitc
 public static function getInstance()
 {
     if (!self::$instance) {
         self::$instance = new mvcCore();
     }
     return self::$instance;
 }
コード例 #2
0
ファイル: view.class.php プロジェクト: phithienthan/vnitc
 /**
  *
  * @constructor
  *
  * @access public
  *
  * @return void
  *
  */
 function __construct()
 {
     $mvcCore = mvcCore::getInstance();
     $this->module = $mvcCore->module;
     $this->controller = $mvcCore->controller;
     $this->action = $mvcCore->action;
 }
コード例 #3
0
ファイル: router.class.php プロジェクト: phithienthan/vnitc
 /**
  *
  * @get the controller
  *
  * @access private
  *
  * @return void
  *
  */
 private function getController()
 {
     $mvcCore = mvcCore::getInstance();
     $this->module = $mvcCore->module;
     $this->controller = $mvcCore->controller;
     $this->action = $mvcCore->action;
     $this->file = $this->path . '/modules/' . $this->module . '/controllers/' . $this->controller . 'Controller.php';
 }