Log message #113999

# At Username Text
# Aug 9th 2008, 16:09 linked_ night guys
# Aug 9th 2008, 16:08 wojt cpierce: yes, I have php installed but I'm facing serious problems with paths
# Aug 9th 2008, 16:08 ADmad wojt: cakephp is a php framework.. so it will run fine on anything that can run php scripts
# Aug 9th 2008, 16:08 cpierce ADmad: thanx
# Aug 9th 2008, 16:07 ADmad cpierce: then use find with field like "MAX(id) as max_id"
# Aug 9th 2008, 16:07 cpierce wojt: yes if you can get php running
# Aug 9th 2008, 16:07 cpierce ADmad: in other words it won't be during a save
# Aug 9th 2008, 16:07 wojt is it possible to run cakephp on freebsd server??
# Aug 9th 2008, 16:07 wojt hi
# Aug 9th 2008, 16:06 cpierce i don't want to save i just wanna get the highest one
# Aug 9th 2008, 16:06 ADmad cpierce: after a save $this->Model->id will contain the new id
# Aug 9th 2008, 16:06 ADmad TonkaTruck: yes.. the router already sets all params there so there's so there's no need to explicity call router functions
# Aug 9th 2008, 16:05 cpierce like if i have id autoincrement and i want the highest value set?
# Aug 9th 2008, 16:05 cpierce is there a way to get the last id out of a table with cake
# Aug 9th 2008, 16:05 TonkaTruck ADmad: I see. Probably better to use $this->params like you say.
# Aug 9th 2008, 16:02 TonkaTruck Oh I see. I been using var_dump.
# Aug 9th 2008, 16:01 ADmad TonkaTruck: its a general func... short for print_r
# Aug 9th 2008, 16:00 TonkaTruck ADmad: I do not know how to implement that. Is pr() a function in the controller class?
# Aug 9th 2008, 15:58 ADmad TonkaTruck: did u check what i suggested ?
# Aug 9th 2008, 15:57 TonkaTruck ADmad: this is what I did, it seems to work nicely, too: http://bin.cakephp.org/view/946036934
# Aug 9th 2008, 15:50 TonkaTruck ADmad: I was just noticing Router::getParams() has a current argument. Let me try that.
# Aug 9th 2008, 15:49 ADmad TonkaTruck: pr($this->params)
# Aug 9th 2008, 15:49 VolVE flash just seems a bit limited, at least in 1.1
# Aug 9th 2008, 15:49 VolVE jaredhoyt: hmm, perhaps that was it... curiopus
# Aug 9th 2008, 15:49 jaredhoyt *haven't
# Aug 9th 2008, 15:49 jaredhoyt VolVE: you may be referring to Controller::flash() ... and i have "heard" people recommend using Session->setFlash() and session->flash() over Controller::flash() but have seen any deprecation plans documented
# Aug 9th 2008, 15:47 TonkaTruck What might be a good way to detect the current prefix route prefix? I can think of a hackish way but all I see in Router:: is prefixes() which returns an array of existing prefixes regardless of which prefix is currently in use.
# Aug 9th 2008, 15:37 mukesh The FileEngine is being used for caching. To change the config edit APP/config/core.php waht to edit here???
# Aug 9th 2008, 15:36 mukesh not able to install on wamp geting errors..
# Aug 9th 2008, 15:30 VolVE thanks :D
# Aug 9th 2008, 15:30 VolVE well, ok then
# Aug 9th 2008, 15:29 VolVE curious
# Aug 9th 2008, 15:29 ADmad VolVE: you have the wrong impression...
# Aug 9th 2008, 15:27 barduck AD7six: ok, that does work but only if you remember to put '...AS count' in the 'fields' :)
# Aug 9th 2008, 15:27 VolVE I was under the impression that the flash() concept for user messages was totally redone in 1.2 ?
# Aug 9th 2008, 15:26 markstory $session->flash() ?
# Aug 9th 2008, 15:26 VolVE hey all, so what's the 1.2 version of $session->flash() ?
# Aug 9th 2008, 15:21 markstory eaqua: so what happens when you upgrade you cake libs?
# Aug 9th 2008, 15:21 eaqua AD7six: nah, in cake/libs, I don't think I have this in my app.
# Aug 9th 2008, 15:20 AD7six eaqua: in your app I hope
# Aug 9th 2008, 15:19 eaqua AD7six: thanks, changed model/datasources/dbo_source.php and it works now.