# |
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 |
# |
Aug 7th 2008, 09:40 |
moelee |
why is that TommyO? |
# |
Aug 7th 2008, 09:40 |
moelee |
np |
# |
Aug 7th 2008, 09:40 |
moelee |
haha |
# |
Aug 7th 2008, 09:40 |
Eddie_CRO |
thanks dude |
# |
Aug 7th 2008, 09:40 |
TommyO |
ACTION thinks using params, other than maybe $id, is clumsy ;) |
# |
Aug 7th 2008, 09:40 |
Eddie_CRO |
moron |