[ Index ]
 

Code source de CakePHP 1.1.13.4450

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/cake/libs/view/helpers/ -> session.php (sommaire)

Short description for file. Long description for file

Copyright: Copyright 2005-2007, Cake Software Foundation, Inc.
License: http://www.opensource.org/licenses/mit-license.php The MIT License
Version: $Revision: 4409 $
Poids: 137 lignes (3 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

SessionHelper:: (6 méthodes):
  __construct()
  read()
  check()
  error()
  flash()
  valid()


Classe: SessionHelper  - X-Ref

Session Helper.

Session reading from the view.

__construct($base = null)   X-Ref
Class constructor

param: string $base

read($name = null)   X-Ref
Used to read a session values set in a controller for a key or return values for all keys.

In your view: $session->read('Controller.sessKey');
Calling the method without a param will return all session vars

param: string $name the name of the session key you want to read
return: values from the session vars

check($name)   X-Ref
Used to check is a session key has been set

In your view: $session->check('Controller.sessKey');

param: string $name
return: boolean

error()   X-Ref
Returns last error encountered in a session

In your view: $session->error();

return: string last error

flash($key = 'flash')   X-Ref
Used to render the message set in Controller::Session::setFlash()

In your view: $session->flash('somekey');
Will default to flash if no param is passed

param: string $key The [Message.]key you are rendering in the view.
return: string Will echo the value if $key is set, or false if not set.

valid()   X-Ref
Used to check is a session is valid in a view

return: boolean



Généré le : Sun Feb 25 19:27:47 2007 par Balluche grâce à PHPXref 0.7