public function loadMod($name) { // if this library doesn't have this module then Zoop will have to figure out which one does if (!$this->hasMod($name)) { return Zoop::loadMod($name); } if (isset($this->mods[$name]) && $this->mods[$name]) { return; } $modName = ucfirst($name) . 'Module'; include "{$this->path}/{$name}/{$modName}.php"; $this->mods[$name] = new $modName("{$this->path}/{$name}", $this); }
<?php include zoop_dir . '/Zoop.php'; Zoop::loadMod('session'); Zoop::loadMod('zone'); // start the session session::start(); // register classess in the application that extend Zoop classes Zoop::registerClass('AppZone', dirname(__FILE__) . '/extend/AppZone.php'); Zoop::registerClass('AppGui', dirname(__FILE__) . '/extend/AppGui.php'); // register the zones Zoop::registerClass('ZoneEntries', dirname(__FILE__) . '/zones/ZoneEntries.php'); // register domain classes Zoop::registerClass('Entry', dirname(__FILE__) . '/domain/Entry.php');