Hi All,
I assumed that you could use variables set in an action in a
beforeRender function because it is called after the controller action
but I guess I am wrong. is there a way to pass a variable to
beforeRender? Here is my code:
function beforeRender()
{
if($id){
$current_cn = $this->Account->Note->read(null, $id);
$this->set('current_cn', $current_cn);
}
}
Where $id is set in the controller actions and is passed along in the
URL.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---