# |
Sep 21st 2011, 19:05 |
jgonca |
) |
# |
Sep 21st 2011, 19:05 |
cpgo |
are you sure you're using 2.0? :P |
# |
Sep 21st 2011, 19:05 |
Jeebs624 |
Works perfectly if I switch it to "RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]" (CakePHP 1.3 way). |
# |
Sep 21st 2011, 19:04 |
cpgo |
better error managment, component/helper aliasing, better organization, supposed to be speed improvment too, more oop, lazy model loading by default.. |
# |
Sep 21st 2011, 19:04 |
Dunhamzzz |
all look the bloody same |
# |
Sep 21st 2011, 19:04 |
Dunhamzzz |
dw I got it. damn quotes |
# |
Sep 21st 2011, 19:04 |
Jeebs624 |
jgonca: I just did and it's the same thing. The issue seems to be line "RewriteRule ^(.*)$ index.php/$1 [QSA,L]". |
# |
Sep 21st 2011, 19:03 |
jgonca |
jeebs624: yup... if you're not using it as root, you need to edit the 3 files and add them the RewriteBase rule |
# |
Sep 21st 2011, 19:02 |
Dunhamzzz |
ok dumb question, what's the proper way of doing wildcard LIKE condition in CakePHP without allowing users to search for % and return everything |
# |
Sep 21st 2011, 19:02 |
Jeebs624 |
jgonca: Nope, am I suppose to? I must have missed that part. |
# |
Sep 21st 2011, 19:02 |
AlexMax |
cpgo: What's the biggest "Woah, awesome" coming from 1.3? |
# |
Sep 21st 2011, 19:01 |
jgonca |
jeebs624: have you modified the 3 .htaccess files to include the "rewriteBase /folder/"? |
# |
Sep 21st 2011, 19:01 |
cpgo |
there are a lot of changes to the core, so yea |
# |
Sep 21st 2011, 19:01 |
Jeebs624 |
jgonca: Something like that. http://blahblah/folder/controller/action |
# |
Sep 21st 2011, 19:01 |
AlexMax |
i haven't really been paying attention to it at all heh |
# |
Sep 21st 2011, 19:01 |
AlexMax |
is CakePHP 2.0 actually a 2.0? |
# |
Sep 21st 2011, 19:00 |
jgonca |
jeebs624: so you're accessing it via server/cake/? |
# |
Sep 21st 2011, 19:00 |
Jeebs624 |
jgonca: If you are talking to me, it's in a folder. |
# |
Sep 21st 2011, 18:59 |
cpgo |
meh give me a min, let me just change my root dir to another folder and bake an app |
# |
Sep 21st 2011, 18:59 |
cpgo |
I've been using RC2 in a vhost, idk if thats making a diff.. if I have time later I will test |
# |
Sep 21st 2011, 18:59 |
jgonca |
are you testing cake as the root of your webserver? |
# |
Sep 21st 2011, 18:58 |
Dunhamzzz |
sup |
# |
Sep 21st 2011, 18:58 |
Jeebs624 |
No new lines. This is a fresh download of RC2. |
# |
Sep 21st 2011, 18:57 |
cpgo |
check for new lines at the end of htacess files |
# |
Sep 21st 2011, 18:56 |
Jeebs624 |
Same thing. Apache logs says nothing. |
# |
Sep 21st 2011, 18:53 |
cpgo |
Jeebs624, try RewriteBase / in the htacess before the rules |
# |
Sep 21st 2011, 18:53 |
caffeine_junkie |
np |
# |
Sep 21st 2011, 18:53 |
jgonca |
caffeine_junkie: thx :) |
# |
Sep 21st 2011, 18:52 |
cpgo |
check your apache error/access logs, see whats happening with the rewrite |
# |
Sep 21st 2011, 18:51 |
caffeine_junkie |
jgonca: habtm should do fine. but you'd have to check restriction yourself |
# |
Sep 21st 2011, 18:51 |
tomasm- |
how do I define a hasMany association with a model that exists in a plugin? |
# |
Sep 21st 2011, 18:51 |
Jeebs624 |
Nope, dedicated host. |
# |
Sep 21st 2011, 18:51 |
cpgo |
is it in a vhost? |
# |
Sep 21st 2011, 18:50 |
Jeebs624 |
cpgo: I expected much. I don't want to change the .htaccess, any suggestions? I just made a simple controller, 1 action, 1 view file. |
# |
Sep 21st 2011, 18:50 |
jgonca |
caffeine_junkie: nope... only stone_id and enterprise_id, nothing more... there's only a restriction that enterprise_id cannot be equal to Stone.enterprise_id |
# |
Sep 21st 2011, 18:49 |
cpgo |
Jeebs624, works for me |
# |
Sep 21st 2011, 18:49 |
caffeine_junkie |
jgonca: if there will be extra payload in linkingtable/favorite then do favorites |
# |
Sep 21st 2011, 18:48 |
Jeebs624 |
Is this a bug in CakePHP 2.0? I get "No input file specified.", but when I change the /app/webroot/.htaccess ( RewriteRule ^(.*)$ index.php/$1 [QSA,L] to RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]), it works. |
# |
Sep 21st 2011, 18:47 |
Jonah11_ |
lelu, i dont think so. when i cahnge the content-type of the header i stop getting the 404, if that tell you something |
# |
Sep 21st 2011, 18:47 |
jgonca |
should I treat it as an HABTM or should I create a model "Favourite"? |
# |
Sep 21st 2011, 18:47 |
caffeine_junkie |
habtm |