コード例 #1
0
ファイル: model.php プロジェクト: BGCX261/zoombi-svn-to-git
 /**
  * Load model from file
  * @param string $a_model
  * @return ZModel|null
  */
 public static final function &load($a_model)
 {
     return Zoombi::model($a_model);
 }
コード例 #2
0
ファイル: boot.php プロジェクト: BGCX261/zoombi-svn-to-git
 /**
  * Execute MVC stack
  * @param $a_contoller
  * @param $a_view
  * @param $a_model
  */
 public static final function mvc($a_contoller, $a_view = null, $a_model = null)
 {
     $c = Zoombi::controller($a_contoller);
     if ($c) {
         if ($a_model) {
             $c->model = Zoombi::model($a_model);
         }
         if ($a_view) {
         }
         $c->render($view);
     }
 }