mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge pull request #12218 from WrDX/WrDX-session-write-doc
2.x Updated docs for CakeSession
This commit is contained in:
commit
a1203409aa
2 changed files with 3 additions and 3 deletions
|
@ -45,9 +45,9 @@ class SessionComponent extends Component {
|
||||||
*
|
*
|
||||||
* In your controller: $this->Session->write('Controller.sessKey', 'session value');
|
* In your controller: $this->Session->write('Controller.sessKey', 'session value');
|
||||||
*
|
*
|
||||||
* @param string $name The name of the key your are setting in the session.
|
* @param string|array $name The name of the key your are setting in the session.
|
||||||
* This should be in a Controller.key format for better organizing
|
* This should be in a Controller.key format for better organizing
|
||||||
* @param string $value The value you want to store in a session.
|
* @param string|array $value The value you want to store in a session.
|
||||||
* @return bool Success
|
* @return bool Success
|
||||||
* @link https://book.cakephp.org/2.0/en/core-libraries/components/sessions.html#SessionComponent::write
|
* @link https://book.cakephp.org/2.0/en/core-libraries/components/sessions.html#SessionComponent::write
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -432,7 +432,7 @@ class CakeSession {
|
||||||
* Writes value to given session variable name.
|
* Writes value to given session variable name.
|
||||||
*
|
*
|
||||||
* @param string|array $name Name of variable
|
* @param string|array $name Name of variable
|
||||||
* @param string $value Value to write
|
* @param string|array $value Value to write
|
||||||
* @return bool True if the write was successful, false if the write failed
|
* @return bool True if the write was successful, false if the write failed
|
||||||
*/
|
*/
|
||||||
public static function write($name, $value = null) {
|
public static function write($name, $value = null) {
|
||||||
|
|
Loading…
Reference in a new issue