コード例 #1
0
ファイル: autoload.php プロジェクト: regality/zombie-core
function autoloadModel($class)
{
    if (substr($class, -5) == 'Model') {
        $slug = classToUnderscore(substr($class, 0, strlen($class) - 5));
        include $GLOBALS['zombie_root'] . '/model/' . $slug . '.php';
    }
}
コード例 #2
0
ファイル: Controller.php プロジェクト: regality/zombie-core
 public function __construct()
 {
     $this->config = getZombieConfig();
     $this->json = array();
     $this->view_base = classToUnderscore(get_class($this));
     $sess_class = underscoreToClass($this->config['session']['type'] . '_' . 'session');
     $this->session = $sess_class::getSession();
     $this->mobileInit();
     $this->bouncer = "Basic";
     $this->allowed_formats = array("Html", "FourOhFour");
 }