IMO, it have difference. Just say, we have two kind of request,
1. direct url request ( /articles/index/date:2009-04-22/page:3)
2. ajax request (/articles/#)

So, on first request, $this->passedArgs is effective
but, in seconds, using $this->params['named] is effective than
$this->passedArgs.

Just imagine we have 5 input form sended via Ajax and using
$this->passedArgs.... *don't ask me to do that*


On Wed, 2009-04-22 at 13:20 -0700, justinrussell wrote:
> In the following case, it appears that both $this->passedArgs and
> $this->params['named'] will yield the same value from a controller
> action:
> 
> /articles/index/date:2009-04-22/page:3
> 
> I can't seem to find a clear answer as to whether there is any
> difference between the two in any situation. Articles online
> (including the manul) seem to be divided on the issue. Is it
> beneficial in any way to use one over the other, or is it just a
> personal choice?
> 
> > 


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

Reply via email to