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
here are some examples:
url: /controller/action/name/other
function ($name, $other) {
pr($this->passedArgs);
}
you can also access $name and $other which will have the values of
'name' and 'other' as in the url.
result: array('0'=> 'name', '1'=>'other');
url: /controller/action/name:value/other:value
function () {
pr($this->namedArgs);
}
result = array('name'=> value, 'other'=> value);
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.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---