Log message #113987

# At Username Text
# 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.
# Aug 9th 2008, 15:17 jaredhoyt DrBacchus: hah, that's evil
# Aug 9th 2008, 15:17 jaredhoyt i decided today i like spaces on each side of the . when concatenating
# Aug 9th 2008, 15:17 DrBacchus Especially useful if you get paid by changed lines of code.
# Aug 9th 2008, 15:17 markstory jaredhoyt: I do that too sometimes. when I have a slow day.
# Aug 9th 2008, 15:17 jaredhoyt i think i have a little ocd -- everytime i decide on a new coding standard, i feel like i have to go back through all my code and change everything :D
# Aug 9th 2008, 15:13 Martz once bitten, twice shy
# Aug 9th 2008, 15:12 Howard`` yeah, they seem to be opening up the dev end or something lately, they have a lot of their resources you can access through quite extensive api's now
# Aug 9th 2008, 15:12 AD7six eaqua: if changing to find is problematic (I don't really see how) look at the __call and call__ methods in model are implemented and overide in yoru app model.
# Aug 9th 2008, 15:12 adj so i'm definitely a bit biased
# Aug 9th 2008, 15:12 adj Howard``: maybe. i never looked back at it. i've had enough negative MS experiences that i don't really trust them anymore
# Aug 9th 2008, 15:11 eaqua AD7six: hm, so it might be a switch from php4 to php5 on the shared hosting...
# Aug 9th 2008, 15:11 AD7six dieselz: think about "why [his code -> a malicous user]...