Log message #1031386

# At Username Text
# Sep 11th 2009, 08:07 davidebenini $page_conditions = array('Company.name like'=> urlencode("%".$this->data['Company']['name'].'%');
# Sep 11th 2009, 08:07 csiegert What is to prefer for values that never change: constants or Configure?
# Sep 11th 2009, 08:07 davidebenini been experinmenting wit urlencoding conditions
# Sep 11th 2009, 08:07 davidebenini back
# Sep 11th 2009, 08:07 Gothfunc lo
# Sep 11th 2009, 08:07 markstory there is a setting in core.php in the 1.2.5 package/checkout for this as well.
# Sep 11th 2009, 08:07 markstory you are running 5.3 and don't have your ini file setup properly.
# Sep 11th 2009, 08:06 Add- Miika--: cake is picking up on a bad setting in your php install (i think), you should try looking there first
# Sep 11th 2009, 08:03 Miika-- -web
# Sep 11th 2009, 08:03 Miika-- I haven't written any code yet, that's in CakePHP... I just unzippded the CakePHP to my web folder
# Sep 11th 2009, 08:01 TehTreag Miika--: I'd chase down where that timezone is specified and resolve the issue as recommended in the warning. php.ini, httpd environment, somewhere.
# Sep 11th 2009, 07:59 TehTreag hmvrulz: That's the default behavior, provided I understand correctly. Have you tried it?
# Sep 11th 2009, 07:59 Miika-- can anyone help me with this?
# Sep 11th 2009, 07:59 Add- and if you call debug($Model->data) in the behavior it shows the modification was done correctly..
# Sep 11th 2009, 07:58 Add- it saves fine but with {name} in there instead of the real name
# Sep 11th 2009, 07:58 Add- nor me :(
# Sep 11th 2009, 07:58 Miika-- i just unzipped my first cake and i get this http://pastie.org/613510
# Sep 11th 2009, 07:58 rchavik Add-: sorry.. can't see anything wrong with it..
# Sep 11th 2009, 07:57 Miika-- hello
# Sep 11th 2009, 07:53 Add- rchavik: that's sort of a hack, i'm using model::saveall to automagic the association and it will only save if the form is in the structure [News][x][...]
# Sep 11th 2009, 07:52 hmvrulz ya i hav gone through tutorials .. in that example they hav redirected the afterlogin page to post add i wanted to do it to the action from whr it was redirected
# Sep 11th 2009, 07:50 rchavik Add-: you're only modifying the second record ?
# Sep 11th 2009, 07:49 TehTreag BlackIce: No problem.
# Sep 11th 2009, 07:49 BlackIce thanks TehTreag
# Sep 11th 2009, 07:48 BlackIce oh yeah, good idea
# Sep 11th 2009, 07:48 BlackIce well, it's because models have a save callback
# Sep 11th 2009, 07:48 TehTreag BlackIce: I think there is a behavior in the bakery that attempts to do logging for you too. Maybe, that's a good place to start looking.
# Sep 11th 2009, 07:47 TehTreag BlackIce: Shouldn't that be under the control of the controller, not the model? Why would the 'SalesTicket' model be concerned with the logging of the url?
# Sep 11th 2009, 07:47 BlackIce but I'd rather have the controller and actions as AppController has them
# Sep 11th 2009, 07:47 BlackIce I could just log the referer and the URL
# Sep 11th 2009, 07:46 BlackIce TehTreag: I'd like to log all save actions
# Sep 11th 2009, 07:46 TehTreag BlackIce: There shouldn't be a need... but you can pass it from the call (in the controller.) :)
# Sep 11th 2009, 07:46 Add- can anyone help?
# Sep 11th 2009, 07:46 rchavik davidebenini: you'll need to escape it when you construct the url
# Sep 11th 2009, 07:46 Add- hi - i have an issue with a model not saving changes made to the data array in the beforeSave method - http://bin.cakephp.org/view/1754007281
# Sep 11th 2009, 07:46 BlackIce hm, is there a way to access controller and action name in the model?
# Sep 11th 2009, 07:45 rchavik davidebenini: your url should have been .../Company.name%20like:%25a%25 (where %25 is urlencode('%'))
# Sep 11th 2009, 07:45 HardPhuck hmmm point taken
# Sep 11th 2009, 07:45 TehTreag jessica-m: How've you been stranger? What's your question?
# Sep 11th 2009, 07:45 TehTreag HardPhuck: That's along the lines of what I asked initially. It's sounds like a nightmare. I think you are going to hate that in a few places, like $this->Auth->user('????'); - Which fields are available for which tables?
# Sep 11th 2009, 07:44 davidebenini rchavik: do you suggest that I escape in the view?