Example #1
0
 function set($k, $v)
 {
     //$this->params[$k] = $v;
     $this->params = Arr::setVal($this->params, explode('.', $k), $v);
 }
Example #2
0
 function setFlash($type, $msg = '', $group = '')
 {
     $flashes = $this->get('__FLASH__', array());
     $path = array($type);
     if (!empty($group)) {
         $path = array($type, $group);
     }
     $type_msgs = Arr::getVal($flashes, $path, array());
     $type_msgs = array_merge($type_msgs, (array) $msg);
     return $this->set('__FLASH__', Arr::setVal($flashes, $path, $type_msgs));
 }
Example #3
0
 public static function set($key, $value)
 {
     self::$data = Arr::setVal(self::$data, explode('.', $key), $value);
 }