Log message #114973

# At Username Text
# Aug 10th 2008, 08:12 golak i am a rubyonrails developer who has migrated to cakephp. Hence I am not well versed in cakephp.
# Aug 10th 2008, 08:11 golak yes it is.
# Aug 10th 2008, 08:09 kalileo mrConfused: :)
# Aug 10th 2008, 08:09 mrConfused thanks
# Aug 10th 2008, 08:09 mrConfused kalileo i didn't thinkg about afterRender.. good idea.
# Aug 10th 2008, 08:09 kalileo golak: have I slept so long? is that a cake method now?
# Aug 10th 2008, 08:07 golak yes
# Aug 10th 2008, 08:07 kalileo golak: updateall ?
# Aug 10th 2008, 08:06 kalileo afterRender()
# Aug 10th 2008, 08:06 golak it should perpare the sql statement considering it as a string
# Aug 10th 2008, 08:06 kalileo mrConfused: or delete your session var in the controllers afterrRnder()
# Aug 10th 2008, 08:04 kalileo mrConfused: you can read (and delete) the session from your controller, set() what you wanna display, and then diplay what you have set in the view
# Aug 10th 2008, 08:02 mrConfused to have another function like flash that doesn't echo.
# Aug 10th 2008, 08:02 mrConfused i'm placing an enchancement request
# Aug 10th 2008, 08:02 mrConfused but i dont' write at all
# Aug 10th 2008, 08:02 mrConfused kalileo according to the api you can but it also says not recommended from your view.
# Aug 10th 2008, 08:02 golak using updateall to update a table generates error for string values. It doesn't wrap the string within quotes in the sql statement. Is this a problem with my code?
# Aug 10th 2008, 08:01 kalileo mrConfused: the session helper cannot write to a session
# Aug 10th 2008, 07:58 mrConfused read does the job but then the problem is taht it remains in the session, and doesn't delete it.
# Aug 10th 2008, 07:58 mrConfused i want to be able to read it and assign the contents to a variable that i can traverse.
# Aug 10th 2008, 07:58 mrConfused i don't want an echo.
# Aug 10th 2008, 07:57 mrConfused when you call the flash method, it automatically echos...
# Aug 10th 2008, 07:57 mrConfused kalileo yah but you don't understand my situation.
# Aug 10th 2008, 07:56 kalileo mrConfused: did you see that there is a method flash() -and- a method read() ?
# Aug 10th 2008, 07:54 Tosak I'll give it a try, thanks
# Aug 10th 2008, 07:54 mrConfused or 3
# Aug 10th 2008, 07:54 mrConfused Tosak set debug to 2
# Aug 10th 2008, 07:54 Maniaman Tosak: set debug to 2
# Aug 10th 2008, 07:54 mrConfused the session helper is limited ...
# Aug 10th 2008, 07:53 Tosak For some reason my data isn't being saved, and I have no clue why it suddenly broke.. It's data from a form to a db. Any ideas for debugging?
# Aug 10th 2008, 07:53 mrConfused kalileo yes i have...
# Aug 10th 2008, 07:50 kalileo flash is just one method there
# Aug 10th 2008, 07:50 kalileo mrConfused: have you looked at the other possibilities to use sessions?
# Aug 10th 2008, 07:50 mrConfused for strings its nice... but what if i want more ?
# Aug 10th 2008, 07:49 kalileo mrConfused: I think flash is supposed to do exactly that, to echo the string
# Aug 10th 2008, 07:49 kalileo ACTION is using $this->Session->setFlash() for strings only an it's working fine
# Aug 10th 2008, 07:48 kalileo what a pity, it's gone
# Aug 10th 2008, 07:47 mrConfused maybe every1 is still sleepin
# Aug 10th 2008, 07:46 mrConfused i'd like to do session->flash but that does an automatic echo and i need to capture the contents and loop through to create my ordered lists...
# Aug 10th 2008, 07:45 mrConfused i could write over it with an empty value.. but thats lame
# Aug 10th 2008, 07:45 mrConfused what i noticed is that setFlash only takes a string as a parameter.... if i want to pass it an array and then read it in my view like : session->read("Message.msite")... it works, but it still remains in the session and theres no remove function. :-(