function set($k, $v) { //$this->params[$k] = $v; $this->params = Arr::setVal($this->params, explode('.', $k), $v); }
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)); }
public static function set($key, $value) { self::$data = Arr::setVal(self::$data, explode('.', $key), $value); }