function __construct() { $config = GuiModule::sGetConfig(); $tmpPath = Zoop::getTmpDir(); // call the parent contructor parent::__construct(); $this->template_dir = array(); // set the default for the base template dir // this should be using the new config stuff, not defines if (!defined("gui_template_dir")) { define("gui_template_dir", app_dir . "/templates"); } // set the standard template directory and any others registerd with zoop $this->addTemplateDir(gui_template_dir); // set the compile directory $this->setCompileDir($tmpPath . "/smarty2"); // set the cache_dir directory // what does this even do? I'm pretty sure that is not set up $this->setCacheDir($tmpPath . "/guicache"); // set the config directory // what does this even do? I'm pretty sure that is not set up $this->setConfigDir(app_dir . "/guiconfig"); // set the plugin directories $this->addPluginsDir(dirname(__FILE__) . '/plugins'); // one for plugins added into gui $this->addPluginsDir(app_dir . "/guiplugins"); // one or plugins specific to the app }
function __construct($driverSpec = 'default') { if (is_string($driverSpec)) { $this->driver = GuiModule::getInstance($driverSpec); } else { if ($driverSpec instanceof GuiDriver) { $this->driver = $driverSpec; } else { $this->driver = GuiModule::getInstance(); } } }
function __construct() { $config = GuiModule::sGetConfig(); $tmpPath = Zoop::getTmpDir(); // call the parent contructor $this->Smarty(); $this->template_dir = array(); // set the default for the base template dir // this should be using the new config stuff, not defines if (!defined("gui_template_dir")) { define("gui_template_dir", app_dir . "/templates"); } // set the standard template directory and any others registerd with zoop $this->addTemplateDir(gui_template_dir); // set the compile directory $modTmpDir = $tmpPath . '/smarty2'; if (!is_dir($modTmpDir)) { mkdir($modTmpDir); } $this->setCompileDir($modTmpDir); // set the cache_dir directory // what does this even do? I'm pretty sure that is not set up $this->setCacheDir($tmpPath . "/guicache"); // set the config directory // what does this even do? I'm pretty sure that is not set up $this->setConfigDir(app_dir . "/guiconfig"); // set the plugin directories $this->addPluginDir(zoop_dir . '/vendor/smarty2/plugins'); // one for plugins added into gui $this->addPluginDir(app_dir . "/guiplugins"); // one or plugins specific to the app // we shouldn't use the blanket app_status define any more, we should use specific varabiles // for each behavior, and it should use the new config system // $smarty->debugging = defined('app_status') && app_status == 'dev' ? true : false; // $smarty->compile_check = defined('app_status') && app_status == 'dev' ? true : false; // we want to run this filter on every single smarty script that we execute // it finds all places where we echo out a simple variable and escapes the html // // unfortunately this filters everything. The entire contents if the template. I think it is escaping include. // If we can get it to not do that then we can put this back in. // //$this->autoload_filters = array('pre' => array("strip_html")); }
protected function configure() { self::$sConfig = $this->getConfig(); $this->depend(self::$sConfig['driver']); }
protected function configure() { self::$sConfig = $this->getConfig(); }