# |
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 |
# |
Sep 21st 2011, 18:47 |
jgonca |
An enterprise can have multiple favourite stones and a stone can be favourite by multiple enterprises. (my doubt is here). |
# |
Sep 21st 2011, 18:47 |
jgonca |
An enterprise can be the owner of multiple stones, and s tone only belongs to an enterprise. (this is already mapped). |
# |
Sep 21st 2011, 18:47 |
jgonca |
What's the best way to map this in cake: |
# |
Sep 21st 2011, 18:46 |
lelu |
ACTION will brb |
# |
Sep 21st 2011, 18:46 |
lelu |
Jonah11_: the first thing that pops into my mind is that you may be missing a view or layout for the json |
# |
Sep 21st 2011, 18:46 |
Jonah11_ |
lelu, debug=2 now |
# |
Sep 21st 2011, 18:46 |
daVinciWanaB |
i just submitted my first pull/commit request (whatever it's called) - does it notify me if it's approved/denied? |
# |
Sep 21st 2011, 18:45 |
lelu |
Jonah11_: what happens when you set debug level to 2? or when you look at debug or error in the logs? |
# |
Sep 21st 2011, 18:45 |
Ghost_Trolley |
now im afraid to continue, as there might be hundreds of line that will be broken |
# |
Sep 21st 2011, 18:45 |
Ghost_Trolley |
replacement for ife? |
# |
Sep 21st 2011, 18:44 |
caffeine_junkie |
it's the problem of printed books. they don't update themselves |
# |
Sep 21st 2011, 18:44 |
Jonah11_ |
I have a RESTful api that returns json data that I am testing with firefox REST Client. The GET requests work fine, but I am getting 404 errors I dont understand when posting form data: http://i.imgur.com/7NHps.png. Any ideas? |
# |
Sep 21st 2011, 18:43 |
lelu |
thats the problem with deprecation |
# |
Sep 21st 2011, 18:43 |
lelu |
aww |
# |
Sep 21st 2011, 18:41 |
Ghost_Trolley |
finally found a nice cake book and it used depreciated functions |
# |
Sep 21st 2011, 18:40 |
Ghost_Trolley |
craaap |
# |
Sep 21st 2011, 18:32 |
NetersLandreau |
wow.. i guess i'm really getting senile.. |
# |
Sep 21st 2011, 18:31 |
caffeine_junkie |
systematical: try this one http://api11.cakephp.org/class_form_helper.html#d709eda4a404dc1c62abbab164582b91 |
# |
Sep 21st 2011, 18:30 |
NetersLandreau |
there was no form helper in cake1.1, there was just an html helper.. try googling that instead |
# |
Sep 21st 2011, 18:30 |
tomasm- |
systematical, i'll answer after you ask 7 more times. |
# |
Sep 21st 2011, 18:30 |
caffeine_junkie |
systematical: see. when you do it systematically somebody pays attention. and then somebody will get tired of seeing your question systematically and google it for you. so keep on doing it xD |
# |
Sep 21st 2011, 18:28 |
systematical |
anyone know how to define the selected option in a dropdown list using cake 1.1 form helper? |
# |
Sep 21st 2011, 18:26 |
caffeine_junkie |
systematical: try asking again. maybe it'll help ) |
# |
Sep 21st 2011, 18:20 |
systematical |
anyone know how to define the selected option in a dropdown list using cake 1.1 form helper? |
# |
Sep 21st 2011, 18:20 |
systematical |
anyone know how to define the selected option in a dropdown list using cake 1.1 form helper? |
# |
Sep 21st 2011, 18:19 |
tomasm- |
hi, is there a way to tell cake to not autocreate a class for a model? i have been spending an hour debugging some code where associated data wont show up only to find out that it's autogenerating the model class instead of yelling at me that it doesnt exist (rather in the wrong file or who knows what) |