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