# |
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 |
# |
Aug 8th 2008, 16:33 |
unigue_ |
I mean there's gonna be like 350 files and modifying them is _work_ |
# |
Aug 8th 2008, 16:33 |
M4ngoB00M |
the Propel framework for example (nowhere near the overall functionality of Cake) can totally deduce the entire schema accurately using referenctial integrity and create all models and controllers in a single step!!! |
# |
Aug 8th 2008, 16:33 |
dieselz |
zmonteca: if it shows up, then you are using it |
# |
Aug 8th 2008, 16:33 |
dieselz |
zmonteca: put debug code in ajax.ctp: die('asdlkajsdlajlsda') works just fine |
# |
Aug 8th 2008, 16:33 |
teknoid |
zmonteca: what's in ajax.ctp? |
# |
Aug 8th 2008, 16:32 |
zmonteca |
teknoid: honestly, i don't even know. i assume i'm using the ajax.ctp. but how do i know/check/specify? |
# |
Aug 8th 2008, 16:32 |
unigue_ |
have fun while refactoring on and on that big table app... |
# |
Aug 8th 2008, 16:32 |
M4ngoB00M |
darn |
# |
Aug 8th 2008, 16:31 |
teknoid |
M4ngoB00M: i don't know of any faster way |