Hi gwoo,

On 11 Apr, 19:52, "gwoo" <[EMAIL PROTECTED]> wrote:
> Actually, you are a little off.
> namedArgs are passed as name:value and return an associative array
> passedArgs have always been a numerical array and arguments
>

I have seen that namedArgs return an associative array of parameters
passed in the name:value way.
But passedArgs too (!?). It returns a numerical array if I pass
parameters in the cake way (/controller/action/value1/value2), it
return an associative array like namedArgs if I pass /controller/
action/name1:value1/name2:value2 and it return a mixed array if I pass
parameters in mixed mode /controller/action/value1/name:value2

>
> These are two seperate and distinct ways to pass parameters in the
> url. If you want them to be arguments of the class method then you
> pass only the values in the url. If you want something with the names
> and the values then you use the second method.
>
> hope this helps.

Ok, thanks for your explanation,  so I have to decide which method I
want to use.


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