# |
Sep 21st 2011, 20:28 |
Jonah11_ |
jgonca, looks like i need to set validatePost=false, ty |
# |
Sep 21st 2011, 20:26 |
jgonca |
jonah11_: check the book for more details: http://book.cakephp.org/view/1296/Security-Component |
# |
Sep 21st 2011, 20:26 |
Jonah11_ |
jgonca, how do i do the latter? |
# |
Sep 21st 2011, 20:26 |
jgonca |
jonah11_: you can override the uses variable in your controller, and remove it from the array or you can configure it to let the forms pass |
# |
Sep 21st 2011, 20:26 |
NetersLandreau |
app_controller |
# |
Sep 21st 2011, 20:24 |
dinosaadeh |
guys is there a place where i can set pagination limit globally? |
# |
Sep 21st 2011, 20:24 |
Jonah11_ |
jgonca, currently its in app_controller, if i could just turn it off for this one particular controller that would work. is there a way to do that but still keep it in app_controller? |
# |
Sep 21st 2011, 20:23 |
jgonca |
there is a way to disable the check, if you don't want to remove it from your controller |
# |
Sep 21st 2011, 20:22 |
Jonah11_ |
jgonca, got it. is there a way to either: a) simulate the token or b) turn off the check for certain controllers/actions? |
# |
Sep 21st 2011, 20:21 |
jgonca |
yup |
# |
Sep 21st 2011, 20:21 |
jgonca |
if the form you submit does not contain the hidden fields that are automatically generated (tokken and other that I don't remember the name), it will "open" a security hole and redirect you to a 404 |
# |
Sep 21st 2011, 20:21 |
Jonah11_ |
jgonca, meaning it will check for a token or something like that? |
# |
Sep 21st 2011, 20:19 |
jgonca |
if you include it in your controller, it will validate all the forms you submit |
# |
Sep 21st 2011, 20:19 |
Jonah11_ |
jgonca, can you elaborate/ |
# |
Sep 21st 2011, 20:19 |
jgonca |
jonah11_: the problem you're experiencing may be related to SecurityComponent |
# |
Sep 21st 2011, 20:18 |
Jonah11_ |
jgonca, no i am simulating a post using firefox REST Client addon. I just need to know how the headers are supposed to look |
# |
Sep 21st 2011, 20:17 |
jgonca |
Jonah11_: are you creating the form with the helper? |
# |
Sep 21st 2011, 20:09 |
Jonah11_ |
what http request headers are required for cake to properly handle a posted form submission? |
# |
Sep 21st 2011, 20:07 |
shennyg |
$this->CurrentController->ControllerIWant->theMethod('named' => $namedParams); I want something like this. |
# |
Sep 21st 2011, 20:06 |
jgonca |
ADmad: thx :D |
# |
Sep 21st 2011, 20:06 |
shennyg |
I have a method in a controller I want to call from another controller. I have named params that need to be passed. How do I do it without using a request action? |
# |
Sep 21st 2011, 20:06 |
ADmad |
~tell jgonca about tells |
# |
Sep 21st 2011, 20:02 |
jgonca |
is there any link where we can see the commands that cakebot responds to? |
# |
Sep 21st 2011, 20:01 |
dinosaadeh |
ADmad: i misread THE BOOK :) I should have wrote $this->params['named']['filtered'].. i thought named should be my variable =D my bad |
# |
Sep 21st 2011, 20:01 |
ADmad |
dinosaadeh: debug($this->params); |
# |
Sep 21st 2011, 19:59 |
Lemon|mbp |
Anyone played with google's prediction api? |
# |
Sep 21st 2011, 19:58 |
dinosaadeh |
guys i have in my link comments/edit/21/filtered:532.. when in my controller i try to access filtered param by calling $this->params['filtered'] I am getting an error Undefined index: filtered.. where am i going wrong =( |
# |
Sep 21st 2011, 19:56 |
JouckeH |
cheers! |
# |
Sep 21st 2011, 19:56 |
JouckeH |
well, I'm off then. if anyone needs me (god knows why) i'm registered w/ the same account name as I'm in here ;) |
# |
Sep 21st 2011, 19:55 |
JouckeH |
too bad ;) |
# |
Sep 21st 2011, 19:55 |
JouckeH |
heh heh |
# |
Sep 21st 2011, 19:54 |
caffeine_junkie |
JouckeH: looks like you have to learn cake the regular way and not by translating manuals xD |
# |
Sep 21st 2011, 19:54 |
JouckeH |
;) |
# |
Sep 21st 2011, 19:54 |
JouckeH |
ok, I'll start with the 1.3 reading first ;0 |
# |
Sep 21st 2011, 19:54 |
ADmad |
s/for/fork |
# |
Sep 21st 2011, 19:54 |
ADmad |
JouckeH: for 2.0 for this repo https://github.com/cakephp/docs and add the nl translation |
# |
Sep 21st 2011, 19:53 |
JouckeH |
oh, there's already a dutch manual! |
# |
Sep 21st 2011, 19:53 |
caffeine_junkie |
JouckeH: github.com/cakephp find book repo. make a branch. translate. submit pull request |
# |
Sep 21st 2011, 19:53 |
ADmad |
JouckeH: for 1.3 just hit edit for any article on manual http://book.cakephp.org/nl and submit a change |
# |
Sep 21st 2011, 19:53 |
JouckeH |
i mean... not that I know of ;) |
# |
Sep 21st 2011, 19:53 |
JouckeH |
I don't think so ;) |