Log message #112421

# At Username Text
# Aug 8th 2008, 16:48 TommyO zmonteca: but both of them smell of component or model anyway
# Aug 8th 2008, 16:47 TommyO zmonteca: I assume same with setAccountType
# Aug 8th 2008, 16:47 Howard`` Thanks teknoid
# Aug 8th 2008, 16:47 teknoid Howard``: 'group'=>'fieldname'
# Aug 8th 2008, 16:47 TommyO zmonteca: make getAccountType begin with a _ to protect it from the url
# Aug 8th 2008, 16:46 yoris thats my guess too
# Aug 8th 2008, 16:46 teknoid yoris: could you bin some code because i have a feeling you are doing something very simple, with an overly complex approach
# Aug 8th 2008, 16:46 zmonteca method is all the way at the bottom - admins_facilities_list - in controller.
# Aug 8th 2008, 16:45 teknoid TommyO: not as good as i expect, because i almost forgot ;)
# Aug 8th 2008, 16:45 zmonteca ajax view: http://bin.cakephp.org/view/929282413
# Aug 8th 2008, 16:45 zmonteca actions view: http://bin.cakephp.org/view/1560310127
# Aug 8th 2008, 16:45 zmonteca controller: http://bin.cakephp.org/view/434481354
# Aug 8th 2008, 16:44 Howard`` quick question, is there a way to perform a group by in a findall call?
# Aug 8th 2008, 16:44 yoris teknoid, $this->Model->create(); doesnt have any effect whatsoever, im getting SQL DUPLICATE ENTRY error, because when i do $this->Model->find(whatever) to see if i have to save() it or not, cake reads the db and theres nothing there... i assume cake is caching all the save sentences and waiting for the controller to finish (dont know what) to execute them
# Aug 8th 2008, 16:44 TommyO teknoid: I see the mental note worked ;)
# Aug 8th 2008, 16:43 TommyO zmonteca: bin your code like teknoid so wisely suggested
# Aug 8th 2008, 16:43 TommyO zmonteca: sounds like the working of a syntax error
# Aug 8th 2008, 16:43 zmonteca TommyO: no sign of any output from my controller method or my view
# Aug 8th 2008, 16:43 teknoid into bin *
# Aug 8th 2008, 16:42 teknoid zmonteca: maybe it would help if you posted your action/view/etc.
# Aug 8th 2008, 16:42 zmonteca TommyO: my Response body in firebug.
# Aug 8th 2008, 16:42 dieselz TommyO: :-0
# Aug 8th 2008, 16:42 TommyO zmonteca: what is empty?
# Aug 8th 2008, 16:41 TommyO dieselz: it supports extensions when they're activated in the Router. so a call to /controller/action renders the default view for that action, and /controller/action.xml renders the xml view in the xml default layout, and /controller/action.rss ... etc., etc. etc.
# Aug 8th 2008, 16:41 zmonteca TommyO: still empty.
# Aug 8th 2008, 16:40 yoris teknoid, let me try...
# Aug 8th 2008, 16:40 dieselz TommyO: never really looked through the code - anything else i should know about it?
# Aug 8th 2008, 16:39 teknoid yoris: i'm not sure what you are saying, but imagine you are calling save() in a loop and therefore need to call create() to reset the model object
# Aug 8th 2008, 16:39 TommyO dieselz: RequestHandler is kickass
# Aug 8th 2008, 16:39 aarongustafson teknoid: yeah, unfortunately, it's on a JSON post response
# Aug 8th 2008, 16:39 zmonteca TommyO: thanks, i'll try that now.
# Aug 8th 2008, 16:39 NetRipper anyone ever implemented metaweblog API in cakephp?
# Aug 8th 2008, 16:39 dieselz TommyO: never knew how that worked....
# Aug 8th 2008, 16:38 TommyO without any additional logic
# Aug 8th 2008, 16:38 TommyO zmonteca: actually, if you have RequestHandler in your components array and the request comes in via Ajax, then Ajax layout is used automatically
# Aug 8th 2008, 16:38 teknoid aarongustafson: debug output i should say
# Aug 8th 2008, 16:38 teknoid aarongustafson: well, you should enable sql debug
# Aug 8th 2008, 16:38 yoris teknoid, the thing is that i have a save sentence that is inside a recursive function and the second run tries to read database for inputs on the first run and they dont exist,
# Aug 8th 2008, 16:37 aarongustafson teknoid: ugh, thanks for you help. I can't seem to figure it out either. And I wouldn't have seen it if I hadn't dumped it to the debugger.
# Aug 8th 2008, 16:37 dieselz zmonteca: $this->RequestHandler->isAjax() may be useful for you
# Aug 8th 2008, 16:37 dieselz zmonteca: yep