vendejp,
Nice try but... bob should use this instead.
Place this in your component:
var $components = array('Session');
Then you will have $this-Session available in your component.
--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka
Have you tried reading the manual? You'll find this nice paragraph,
both in tempdocs.cakephp.org and book.cakephp.org, filed under
'components':
You might also want to utilize other components inside a custom component.
To do so, just create a $components class variable (just like you would in
have this in your component:
function startup($controller){
$this-controller = $controller;
}
then get session by:
$ses = $this-controller-Session;
On Mar 10, 4:40 am, bob [EMAIL PROTECTED] wrote:
how do you get Session object from a component?
thanks