# |
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 |
# |
Sep 11th 2009, 07:37 |
TehTreag |
HardPhuck: Store that extra stuff in other tables... User would have all the information for every user, including username/password. Firm (user_id) would belongTo a user an include the additional information for a firm; Branch, I'm assuming about the same. |
# |
Sep 11th 2009, 07:37 |
davidebenini |
http://bin.cakephp.org/view/2052159119 |
# |
Sep 11th 2009, 07:36 |
davidebenini |
hello folks |
# |
Sep 11th 2009, 07:36 |
hmvrulz |
can anyone plz help me |
# |
Sep 11th 2009, 07:36 |
jessica-m |
how do i do it |