|
|
|
@ -106,16 +106,6 @@ abstract class Controller { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Shortcut for getting session variables |
|
|
|
|
* @param string $key the key that will be taken from the $_SESSION array |
|
|
|
|
* @return array the value in the $_SESSION element |
|
|
|
|
*/ |
|
|
|
|
public function session($key) { |
|
|
|
|
return $this->request->getSession($key); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Shortcut for getting cookie variables |
|
|
|
|
* @param string $key the key that will be taken from the $_COOKIE array |
|
|
|
|