public function SetConfig($key, $value = null) { if (is_array($key)) { self::$config = $key + self::$config; } else { self::$config[$key] = $value; } }
/** * Constructor * * @access public */ public function __construct($tpl_path) { self::$config = config_load('template'); $this->tpl_path = $tpl_path; }