Hi,
You'd pass the event_id to the controller action by including it inn
the url:
$html->link('Register', array('controller'=>'events',
'action'=>'register', $row['Event']['id']), array('title'=>'Register
for '.$row['Event']['title']));
The above link would expect to find an action in the Event controller
starting like:
function register($event_id) {
echo $event_id // just to show the event's id has been passed.
}
And you'd access the session data from within the controller action by
using
$this->Session->read('id')
Not sure about this one to be honest tough, as ever accessed the
sessions id myself.
HTH
Paul
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
To unsubscribe, reply using "remove me" as the subject.