# |
Sep 21st 2011, 20:47 |
TehTreag |
ACTION prefers beers |
# |
Sep 21st 2011, 20:47 |
csotelo |
beers :D |
# |
Sep 21st 2011, 20:47 |
csotelo |
two bears fo you... |
# |
Sep 21st 2011, 20:47 |
csotelo |
D |
# |
Sep 21st 2011, 20:47 |
csotelo |
yes... |
# |
Sep 21st 2011, 20:45 |
TehTreag |
csotelo: It shouldn't take long to experiment with it. |
# |
Sep 21st 2011, 20:45 |
csotelo |
TehTreag, I am glad, thanks a lot for your help, this is a good way to search my target |
# |
Sep 21st 2011, 20:45 |
TehTreag |
csotelo: I'm not sure... I've never had to do it. Maybe someone else has other ideas on the subject. Good luck. |
# |
Sep 21st 2011, 20:45 |
csotelo |
TehTreag, or overload the method _paths or rewrite then, I am thinking on rewrite this method and call the the parent::_paths and then add the new path.. what do you think .. or someone who has do something like that? |
# |
Sep 21st 2011, 20:42 |
csotelo |
TehTreag, oh.. let me see, I was thinking that is something extra on bootstrap.php or something like that, let me check.. thanks |
# |
Sep 21st 2011, 20:41 |
TehTreag |
csotelo: Seems easy enough to extend that one, and provide your own _paths() method. |
# |
Sep 21st 2011, 20:40 |
TehTreag |
csotelo: There's not much to that view... Have you considered writing your own? https://github.com/cakephp/cakephp/blob/1.3.12/cake/libs/view/theme.php |
# |
Sep 21st 2011, 20:37 |
csotelo |
hi |
# |
Sep 21st 2011, 20:37 |
csotelo |
Are there a way to take /app/views/themed and move it to /themed folder? thanks |
# |
Sep 21st 2011, 20:29 |
jgonca |
that's one option. don't forget to do that only in the controller you want, otherwise you'll disable csrf protection for all your site |
# |
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? |