Debug( func_get_args() )  would probadly output array( 0 => lala, 1 => id ) 

Not sure if that's what you want

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of zipman
Sent: 2. marts 2007 14:38
To: Cake PHP
Subject: Pass an array as a parameter


Hello,

is there any way that I can call a function through url and pass an
array as a parameter?

For example

if I have a function in my test controller
function lala($id)
{
}

I can call it through /tests/lala/id

but if
function foo($array)
{
}

where $array is an array

how can I call a controller function from a view and pass an array as
a parameter?

I have a view where I have a button and I have connected the onclick
event
with calling that function.

Thanks in advance




--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to