Ejemplo n.º 1
0
 /**
  * Get the value of a scoped variable or fallback to the view model.
  * 
  * @param string $key The name of the variable to be accessed.
  * @return mixed The value of the requetsed variable.
  */
 public function get($key)
 {
     if (array_key_exists($key, $this->scoped)) {
         return $this->scoped[$key];
     }
     return $this->model->get($key, NULL);
 }