Log message #1031363

# At Username Text
# 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?
# Sep 11th 2009, 07:43 rchavik davidebenini: i think you need to escape %
# Sep 11th 2009, 07:42 HardPhuck if this will work then fine, otherwise i'll use your solution :)
# Sep 11th 2009, 07:42 TehTreag hmvrulz: There is a tutorial in the cookbook that builds a website with authentication. Did you check it out?
# Sep 11th 2009, 07:42 HardPhuck and then set the userModel
# Sep 11th 2009, 07:42 HardPhuck when username is entered app_controller will check which table has that username
# Sep 11th 2009, 07:42 HardPhuck TehTreag: thanx ofr the suggestion, i have another idea though... it's a bit of workaround but it should work:
# Sep 11th 2009, 07:41 jessica-m TehTreag: i cant quite figure out how to place that url in
# Sep 11th 2009, 07:41 hmvrulz i am not to log in even if the user is inserted into database its showing longinerror
# Sep 11th 2009, 07:40 TehTreag HardPhuck: For your original question, no I don't think you can get the AuthComponent to do it for you... but with a little effort you may be able to subclass it to get what you want. I'd recommend you step back, and evaluate why you want to do it, first.
# Sep 11th 2009, 07:39 davidebenini any idea of what might be wrong?
# Sep 11th 2009, 07:39 HardPhuck TehTreag: thanx
# Sep 11th 2009, 07:39 davidebenini an idea?
# Sep 11th 2009, 07:38 davidebenini Your browser sent a request that this server could not understand."
# Sep 11th 2009, 07:38 davidebenini "Bad Request
# Sep 11th 2009, 07:38 davidebenini I guess something's wrong with the spaces
# Sep 11th 2009, 07:38 davidebenini http://sopo.dev/companies/search/page:2/Company.name%20like:%a%
# Sep 11th 2009, 07:38 davidebenini sorry, this url
# Sep 11th 2009, 07:37 davidebenini producing this text:
# Sep 11th 2009, 07:37 TehTreag ~tell hmvrulz about ask
# Sep 11th 2009, 07:37 TehTreag hmvrulz: It's best to pose your question. If anyone can answer it, they will.
# Sep 11th 2009, 07:37 davidebenini but next link not working
# Sep 11th 2009, 07:37 davidebenini paginate working, with teh shown condition