# |
Sep 21st 2011, 17:35 |
Oleander |
Oldskool, i was actually referencing the cookbook but couldnt get anywhere, thanks again |
# |
Sep 21st 2011, 17:32 |
Oldskool |
That contains some useful stuff :) |
# |
Sep 21st 2011, 17:32 |
Oldskool |
Oleander: You're welcome. For similar tricks like that, see: http://book.cakephp.org/#!/view/1030/Complex-Find-Conditions |
# |
Sep 21st 2011, 17:31 |
Oleander |
thanks OldSkool!!!! been stuck on it for ages, cheers mate |
# |
Sep 21st 2011, 17:30 |
Oldskool |
Oleander: http://pastebin.com/uL50WK5m |
# |
Sep 21st 2011, 17:29 |
csotelo |
Are there a way to take /app/views/themed and move it to /themed folder? thanks |
# |
Sep 21st 2011, 17:26 |
Oleander |
Section58: could you please if you have some time help me with converting http://pastebin.com/Vxyr2C6y to find() |
# |
Sep 21st 2011, 17:24 |
mdunham918_ |
thanks Section58 |
# |
Sep 21st 2011, 17:24 |
mdunham918_ |
hmm did not think of that good idea i can just use exec() to tell mysql to optimize |
# |
Sep 21st 2011, 17:24 |
Section58 |
mdunham918_: bash comes to mind at this point. |
# |
Sep 21st 2011, 17:22 |
Oleander |
can anyone please help me with the model query, im having trouble converting into find() http://pastebin.com/Vxyr2C6y |
# |
Sep 21st 2011, 17:20 |
_numbers |
how do i render something and stop execution in beforeFilter? |
# |
Sep 21st 2011, 17:18 |
psk50 |
any reason? |
# |
Sep 21st 2011, 17:07 |
csotelo |
Are there a way to take /app/views/themed and move it to /themed folder? thanks |
# |
Sep 21st 2011, 17:06 |
csotelo |
Hello |
# |
Sep 21st 2011, 16:10 |
mdunham918_ |
not repair i mean optimize |
# |
Sep 21st 2011, 16:10 |
mdunham918_ |
Section58: I was creating a shell that runs once a month at 3am to run a repair on all tables |
# |
Sep 21st 2011, 16:08 |
scoutmstershke |
its ok but when you get into array and data manipulation from raw data and then building logic around it something that is so easy in php because a pain in the ass |
# |
Sep 21st 2011, 16:07 |
dealt |
greetings bakers |
# |
Sep 21st 2011, 16:05 |
CSdread_ |
i love c++ |
# |
Sep 21st 2011, 16:02 |
scoutmstershke |
god I hate C++ |
# |
Sep 21st 2011, 15:55 |
Obelich |
good morning ã?ã¯ã??ã?ã?ã?ã?ã¾ã? |
# |
Sep 21st 2011, 15:44 |
Section58 |
the command line has a perpose |
# |
Sep 21st 2011, 15:43 |
Section58 |
its not advisable to repair your tables as your app is running |
# |
Sep 21st 2011, 15:43 |
Section58 |
mdunham918_: cake will take any standard mysql commands |
# |
Sep 21st 2011, 15:33 |
Oldskool |
Ah, nm my last question .. just figured it out .. adding a rewriterule above the cake ones does the trick. |
# |
Sep 21st 2011, 15:33 |
MrRio |
Heyhey |
# |
Sep 21st 2011, 15:32 |
mdunham918_ |
is there a way in cake i can tell a table to repair |
# |
Sep 21st 2011, 15:32 |
ujjain |
I want to keep my views clean. |
# |
Sep 21st 2011, 15:32 |
ujjain |
and would it be stupid to use beforefilter to set keywords, description and re-set it if needed in the controllers? |
# |
Sep 21st 2011, 15:32 |
jbaanus |
ujjain: don't think so |
# |
Sep 21st 2011, 15:32 |
ujjain |
Can you use this->set for same variable name multiple times? |
# |
Sep 21st 2011, 15:31 |
Oldskool |
Hey guys, I have a forum in my Cake app under /app/webroot/forum, which functions just fine, but I was wondering if there is a simple way to have the URL's to show just /forum, instead of redirecting to /app/webroot/forum/ as it does now. |
# |
Sep 21st 2011, 15:29 |
jbaanus |
franki: you can do UNION manually - makes sorting easier |
# |
Sep 21st 2011, 15:28 |
friskd |
but not sure how to make what would be a redirect (HTML) become a json response with "user is not logged in" |
# |
Sep 21st 2011, 15:27 |
jbaanus |
franki: then just merge in PHP... sorting is pita tho :) |
# |
Sep 21st 2011, 15:27 |
friskd |
i want to have auth enabled. |
# |
Sep 21st 2011, 15:27 |
franki |
yea i thought about it too but i cant really touch the db |
# |
Sep 21st 2011, 15:27 |
friskd |
Is there a way to have the Auth component work nicely nicely with a RESTful api |
# |
Sep 21st 2011, 15:26 |
jbaanus |
or create a view in database that merges results from both databases and create a new Model for that View - fake a database table ) |
# |
Sep 21st 2011, 15:25 |
ADmad |
Oleander: anyways, setting the post_type_id in beforeSave is the proper way of doing it |