Re: passedArgs vs. function parameters

2009-06-05 Thread Teh Treag

One situation I had, there was a form with two values, where one could
be empty.  I was using the PRG (http://en.wikipedia.org/wiki/Post/
Redirect/Get) pattern.  How do you determine what info was passed
without the named args?  Positional args, didn't seem the way to go.

http://example.com/search/index/state:Louisiana
http://example.com/search/index/product:Seafood/state:Alabama
http://example.com/search/index/product:Seafood

.vs

http://example.com/search/index/Louisiana
http://example.com/search/index/Alabama/Seafood
http://example.com/search/index/{something}/Seafood

What about if there are more arguments?

-teh

On Jun 5, 12:14 pm, Greg Baker  wrote:
> Why would one choose passing arguments like object_id:whatever over /
> view/whaver or vice versa?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



passedArgs vs. function parameters

2009-06-05 Thread Greg Baker

Why would one choose passing arguments like object_id:whatever over /
view/whaver or vice versa?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---