function autoloadModel($class) { if (substr($class, -5) == 'Model') { $slug = classToUnderscore(substr($class, 0, strlen($class) - 5)); include $GLOBALS['zombie_root'] . '/model/' . $slug . '.php'; } }
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"); }