$my_array = array (
'my_name' => 'James Bond,
'dob' => '2007/09/09'
);
$this->set($my_array);
This will set two view variables with names $myName and $dob. It works
perfectly here.
BTW, are you talking about this one? Your question is pretty unclear.
On Jan 31, 2008 12:35 PM, Steven Chan <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I was just using the latest beta version of cake 1.2 and noticed that
> the Controller::set() function variableizes the variable names if
> given an array but doesn't when it's given 2 arguments. Is this a bug?
> >
>
--
Thanks
Anupom
Trippert Inc. [http://www.trippert.com]
GopherNow. [http://www.gophernow.com/]
Homepage. [http://www.anupom.wordpress.com/]
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---