# |
Aug 7th 2008, 20:01 |
gwoo |
you can disable it for certain actions |
# |
Aug 7th 2008, 20:01 |
gwoo |
by default |
# |
Aug 7th 2008, 20:01 |
gwoo |
renan_saddam: all forms are in the security component |
# |
Aug 7th 2008, 20:01 |
renan_saddam |
is there one documention about ? |
# |
Aug 7th 2008, 20:00 |
renan_saddam |
what defines if a post form is valid or not in security component? |
# |
Aug 7th 2008, 19:58 |
markstory |
are you using requestAction for it now? |
# |
Aug 7th 2008, 19:57 |
thestaff |
k i'll change it then |
# |
Aug 7th 2008, 19:57 |
markstory |
not by accident. |
# |
Aug 7th 2008, 19:57 |
markstory |
thestaff: thats where the acl component is :) |
# |
Aug 7th 2008, 19:57 |
thestaff |
it's better to do it in the controller ? |
# |
Aug 7th 2008, 19:57 |
markstory |
what I've done is do a check for everything. and cache it. |
# |
Aug 7th 2008, 19:57 |
markstory |
so do permissions checks for all the actions that are linked. |
# |
Aug 7th 2008, 19:57 |
thestaff |
yeah I thought so |
# |
Aug 7th 2008, 19:56 |
thestaff |
and wanna show action only allowed |
# |
Aug 7th 2008, 19:56 |
thestaff |
well, it's in the index |
# |
Aug 7th 2008, 19:56 |
markstory |
do them all in the controller and pass it to the view. |
# |
Aug 7th 2008, 19:56 |
markstory |
thestaff: why are you doing acl checks in the view? |
# |
Aug 7th 2008, 19:44 |
thestaff |
i'll figure it out |
# |
Aug 7th 2008, 19:08 |
lqdice__ |
ohh found it |
# |
Aug 7th 2008, 19:06 |
lqdice__ |
i thought cakephp had some wrappers for inline editor.. cant seem to find it though |
# |
Aug 7th 2008, 19:03 |
Telik |
gwoo: i'll try. i'm slowly getting the hang of this :) |
# |
Aug 7th 2008, 19:02 |
gwoo |
Telik: im sure you can figure that out |
# |
Aug 7th 2008, 19:02 |
Telik |
cause this "total" value never existed before my calculation action |
# |
Aug 7th 2008, 19:02 |
Telik |
oh...but when i do that I always get an "Undefined index" error |
# |
Aug 7th 2008, 19:01 |
gwoo |
then it gets push to the view through the controller |
# |
Aug 7th 2008, 19:01 |
gwoo |
Telik: put it back in the results |
# |
Aug 7th 2008, 18:42 |
gwoo |
Telik: that depends on what you are needing them for |
# |
Aug 7th 2008, 18:42 |
markstory |
like the drupal 6 menu system |
# |
Aug 7th 2008, 18:42 |
markstory |
perhaps you would need like a sweet ajaxy html widget. |
# |
Aug 7th 2008, 18:42 |
lqdice__ |
i know sir thats why I asked if there was anything fancier that is commonly used |
# |
Aug 7th 2008, 18:42 |
markstory |
select boxes don't really do that though. |
# |
Aug 7th 2008, 18:42 |
lqdice__ |
this will do for now i guess |
# |
Aug 7th 2008, 18:41 |
lqdice__ |
nono i didnt mean a real tree.. just so you can expand and such instead of seeing the whole thing in a select box |
# |
Aug 7th 2008, 18:41 |
Telik |
hey guys! i need to perform some calculations on some dollar figures...should i do this in my controller and pass the values to the view or perform them directly in the view? |
# |
Aug 7th 2008, 18:41 |
lqdice__ |
touche |
# |
Aug 7th 2008, 18:41 |
markstory |
how will it grow? |
# |
Aug 7th 2008, 18:40 |
lqdice__ |
leaves yes, shit no |
# |
Aug 7th 2008, 18:40 |
markstory |
with leaves and shit? |
# |
Aug 7th 2008, 18:40 |
lqdice__ |
just something fancier |
# |
Aug 7th 2008, 18:40 |
lqdice__ |
like a tree |
# |
Aug 7th 2008, 18:40 |
markstory |
what should it look like? |