# |
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 |
# |
Aug 8th 2008, 16:36 |
zmonteca |
aarongustafson: in my controller method? |
# |
Aug 8th 2008, 16:36 |
teknoid |
aarongustafson: i have no idea why it's doing that |
# |
Aug 8th 2008, 16:36 |
aarongustafson |
zmonteca: $layout = 'Ajax'; |
# |
Aug 8th 2008, 16:36 |
teknoid |
yoris: flush what cache? |
# |
Aug 8th 2008, 16:35 |
zmonteca |
dieselz: what layout to use for ajax requests. |
# |
Aug 8th 2008, 16:35 |
aarongustafson |
teknoid: nothing is being done to the string for the SQL, it's just being assembled |
# |
Aug 8th 2008, 16:35 |
dieselz |
zmonteca: use what, specify what? |
# |
Aug 8th 2008, 16:35 |
zmonteca |
dieselz: how do i use that or specify it? |
# |
Aug 8th 2008, 16:35 |
aarongustafson |
teknoid: I've been trying to dig through the docs and objects lookin to see what could be causing, but to no avail. I'm not running anything on the string and if I remove the single (or double) quotes, the encoded entities go away (so they aren't part of the data coming in), but if I remove the single quottes from the string value, the SQL fails (obviously). |
# |
Aug 8th 2008, 16:35 |
dieselz |
zmonteca: you could debug the view.php cake lib file to see what layout is being used |
# |
Aug 8th 2008, 16:35 |
yoris |
teknoid,is there a way to flush the cache so that multiple save can be done via recursive functions? |
# |
Aug 8th 2008, 16:34 |
dieselz |
zmonteca: then ajax.ctp is not being used :-\ |
# |
Aug 8th 2008, 16:34 |
zmonteca |
dieselz:i put some comments in there and those aren't showing. |
# |
Aug 8th 2008, 16:34 |
zmonteca |
teknoid: ajax.ctp is just the default - echo $content_for_layout |