# |
Sep 21st 2011, 22:54 |
jose_zap |
nnnnathann: ClassRegistry::config() |
# |
Sep 21st 2011, 22:48 |
diverdude |
hmm how much of this tutorial is still valid? http://bakery.cakephp.org/articles/theshz/2006/11/28/user-permissions-and-cakephp-acl |
# |
Sep 21st 2011, 22:46 |
NoReGreT |
I have a login form in a page that posts to login(), i don't want any redirection to login to happen, i just want to enter creds then login and stay on the same page, is ajax the only way to achieve that? |
# |
Sep 21st 2011, 22:23 |
diverdude |
if i make a table with a TIMESTAMP column and set it to NOT NULL, will cakephp validation require to supply a paramter then? |
# |
Sep 21st 2011, 22:23 |
nnnnathann |
any clever ideas for this one? |
# |
Sep 21st 2011, 22:22 |
nnnnathann |
my problem is after I call ClassRegistry::init() on an imported model (with a specified ds parameter), it does not apply to that model's relationships, causing the imported model code to break |
# |
Sep 21st 2011, 22:21 |
nnnnathann |
question for the cake gurus... I am loading in models via the App:build directives in bootstrap, is there a way to get the models loaded from an App::build directory to use a certain db config, without touching the imoprted Model code? |
# |
Sep 21st 2011, 21:08 |
Lemon|mbp |
time to push this stuff to a recommendation engine |
# |
Sep 21st 2011, 20:59 |
scoutmstershke |
so far so good through almost done |
# |
Sep 21st 2011, 20:58 |
scoutmstershke |
man I tired of writing this c++ app |
# |
Sep 21st 2011, 20:57 |
scoutmstershke |
!Hitler |
# |
Sep 21st 2011, 20:57 |
scoutmstershke |
grrrrr |
# |
Sep 21st 2011, 20:48 |
TehTreag |
) |
# |
Sep 21st 2011, 20:48 |
csotelo |
just a type writing mistake |
# |
Sep 21st 2011, 20:47 |
TehTreag |
lol |
# |
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 |