Log message #109306

# At Username Text
# Aug 7th 2008, 09:47 moelee i haven't had to deal with multiple params via url passing, but it would be good to know for reference
# Aug 7th 2008, 09:47 TommyO Eddie_CRO: a session in http-land is a number of requests and replies between a particular client and the server, $params is defined on a per-request level, not a per-session level
# Aug 7th 2008, 09:47 stevieboy nope, it's empty
# Aug 7th 2008, 09:46 moelee TommyO can you explain named params
# Aug 7th 2008, 09:46 stevieboy i'll try anyway
# Aug 7th 2008, 09:45 TommyO at least I don't think so :)
# Aug 7th 2008, 09:45 TommyO stevieboy: no
# Aug 7th 2008, 09:45 stevieboy as param?
# Aug 7th 2008, 09:45 stevieboy can i add it there too?
# Aug 7th 2008, 09:45 stevieboy TommyO: i need to use it in the beforefilter
# Aug 7th 2008, 09:45 Eddie_CRO )
# Aug 7th 2008, 09:45 TommyO is a good way
# Aug 7th 2008, 09:45 TommyO stevieboy: function action($id = null) {
# Aug 7th 2008, 09:45 Eddie_CRO explain.
# Aug 7th 2008, 09:44 TommyO ummm... in a request. Session has a specific definition
# Aug 7th 2008, 09:44 stevieboy TommyO: well.... so i use the only and right way using $this->params['pass'][0]
# Aug 7th 2008, 09:44 Eddie_CRO so i guess $params var is always passed in a session?
# Aug 7th 2008, 09:43 Eddie_CRO yes, i noticed it :D
# Aug 7th 2008, 09:43 TommyO $id will be set to the very first param
# Aug 7th 2008, 09:43 Eddie_CRO D
# Aug 7th 2008, 09:43 TommyO stevieboy: function action($id = null) {
# Aug 7th 2008, 09:43 TommyO stevieboy: wow, you're here just in time for the same discussion with Eddie_CRO :)
# Aug 7th 2008, 09:43 Eddie_CRO ...
# Aug 7th 2008, 09:42 Eddie_CRO ok...
# Aug 7th 2008, 09:42 TommyO if you find yourslef doing: function search($word = null, $count = null) etc, you risk having params out of order or missing
# Aug 7th 2008, 09:42 Eddie_CRO psychic: that was for me?
# Aug 7th 2008, 09:42 stevieboy hello, is there a better way to retrieve the id than use $this->params['pass'][0] ?
# Aug 7th 2008, 09:41 _psychic_ /search/query:stufff/otherstuff:foo
# Aug 7th 2008, 09:41 Eddie_CRO how then?
# Aug 7th 2008, 09:41 Eddie_CRO )
# Aug 7th 2008, 09:41 Eddie_CRO or no right?
# Aug 7th 2008, 09:41 TommyO nope
# Aug 7th 2008, 09:41 Eddie_CRO if so you have to use forms, right?
# Aug 7th 2008, 09:41 Eddie_CRO what do you mean?
# Aug 7th 2008, 09:41 TommyO Cake has cleaner ways, like named params, etc
# Aug 7th 2008, 09:41 moelee brb
# Aug 7th 2008, 09:41 moelee cheers, mate
# Aug 7th 2008, 09:41 Eddie_CRO ;-)
# Aug 7th 2008, 09:41 Eddie_CRO yup, works like a charm
# Aug 7th 2008, 09:41 TommyO it's too rigid
# Aug 7th 2008, 09:40 TommyO well, more than 1 I guess I mean