You want $this->data[...]
On Tue, Apr 29, 2008 at 5:21 AM, rtanz <[EMAIL PROTECTED]> wrote:
>
> hi in my view i am trying this code:
>
> echo $html->link('Add Questions',"/questions/add/$data[Survey][id]");
>
> in order to insert the id of the survey at the end of that link,
> however it is giving me
> Notice (8): Undefined variable: data [APP/views/surveys/edit.ctp, line
> 11]
>
> In the controller dump i have
> [data] => Array
> (
> [Survey] => Array
> (
> [id] => 1
>
> what am i doing wrong? thnx
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---