# |
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 |
# |
Aug 8th 2008, 16:31 |
teknoid |
zmonteca: what layout do you use? |
# |
Aug 8th 2008, 16:31 |
M4ngoB00M |
2: teknoid - its just that it seems I have to manually "cake bake all tablename" and then answer a bunch of questions for every table. I have 60 tables and I want to know if there is a way for me to write a single script that I can one-click to bake everything at once from a schema... |
# |
Aug 8th 2008, 16:30 |
zmonteca |
teknoid: i think i am. my view name is using the same convention as everything else - same name as my requested method (admins_facilities_list). |
# |
Aug 8th 2008, 16:30 |
aarongustafson |
teknoid: http://bin.cakephp.org/view/1197081645 |
# |
Aug 8th 2008, 16:30 |
Azhi_Dahaka_ |
what's the safest way to check if an action is called via post or get? |
# |
Aug 8th 2008, 16:30 |
unigue_ |
aarongustafson, test how cake adds and do the same |
# |
Aug 8th 2008, 16:29 |
aarongustafson |
teknoid: bin? |
# |
Aug 8th 2008, 16:29 |
chrisa |
I have a page that has 4 submit buttons, and 4 sets of data basically. I have it all in one form since I can check the button pressed. Instead of using one form, would I gain much splitting it into 4 forms or am I just passing less data on the POST? |
# |
Aug 8th 2008, 16:29 |
aarongustafson |
return $this->query( $sql ); |
# |
Aug 8th 2008, 16:29 |
aarongustafson |
Debugger::log( $sql ); |
# |
Aug 8th 2008, 16:29 |
aarongustafson |
$sql = substr( $sql, 0, -3 ) . ')'; |
# |
Aug 8th 2008, 16:29 |
aarongustafson |
# strip the extra OR |
# |
Aug 8th 2008, 16:29 |
teknoid |
aarongustafson: bin |
# |
Aug 8th 2008, 16:29 |
aarongustafson |
} |
# |
Aug 8th 2008, 16:29 |
aarongustafson |
$sql .= " `keywords`.`name` = '{$keyword}' OR "; |
# |
Aug 8th 2008, 16:29 |
teknoid |
zmonteca: are you loading the correct view/layout? |
# |
Aug 8th 2008, 16:29 |
aarongustafson |
foreach( $data['keywords'] as $keyword ){ |
# |
Aug 8th 2008, 16:29 |
aarongustafson |
AND ("; |
# |
Aug 8th 2008, 16:29 |
aarongustafson |
WHERE `keywords_works`.`work_id` = {$data['id']} |
# |
Aug 8th 2008, 16:29 |
aarongustafson |
JOIN `keywords` ON `keywords_works`.`keyword_id` = `keywords`.`id` |
# |
Aug 8th 2008, 16:29 |
aarongustafson |
FROM `keywords_works` |
# |
Aug 8th 2008, 16:29 |
aarongustafson |
teknoid: here's the SQL: $sql = "DELETE `keywords_works` |
# |
Aug 8th 2008, 16:28 |
aarongustafson |
me either |
# |
Aug 8th 2008, 16:28 |
teknoid |
aarongustafson: not sure, never seen this happen |
# |
Aug 8th 2008, 16:28 |
zmonteca |
teknoid: is there any configuration stuff that i might be missing regarding the ajaxhelper? why would my response body be empty every time? |
# |
Aug 8th 2008, 16:28 |
aarongustafson |
teknoid: single quotes became and#39; and double quotes became andquot; |