# |
Aug 6th 2008, 19:33 |
batcoder-7 |
i need a top tier menu and for each top tier item it has to have some nested items as well for each top tier link |
# |
Aug 6th 2008, 19:32 |
batcoder-7 |
i need to do the last thing for my project and that is to make a menu |
# |
Aug 6th 2008, 19:32 |
batcoder-7 |
hmm |
# |
Aug 6th 2008, 19:30 |
polerin |
wow.. long day already |
# |
Aug 6th 2008, 19:30 |
polerin |
s/knew/new |
# |
Aug 6th 2008, 19:28 |
polerin |
everyone's knew at some point |
# |
Aug 6th 2008, 19:28 |
polerin |
) |
# |
Aug 6th 2008, 19:28 |
Ins|de |
polerin, you're right, i'm new to cake, i was just manipulating data, i was breaking MVC model |
# |
Aug 6th 2008, 19:27 |
polerin |
gwoo: if there's a better way to do it than reaching through the behavior, I'm all ears... I've enough to do without making it harder :P |
# |
Aug 6th 2008, 19:26 |
polerin |
gwoo: any ideas on the containable question? |
# |
Aug 6th 2008, 19:25 |
polerin |
and then call on that functionality in two places |
# |
Aug 6th 2008, 19:25 |
polerin |
you can't implement an action in a model, but you can implement some functionality in a model. |
# |
Aug 6th 2008, 19:25 |
Ins|de |
i think you're right |
# |
Aug 6th 2008, 19:24 |
Ins|de |
polerin, should i implement that action in a model instead ? |
# |
Aug 6th 2008, 19:24 |
polerin |
that sounds like you need to create a component or refactor into a model |
# |
Aug 6th 2008, 19:24 |
renan_saddam |
Ins|de: maybe $this->action |
# |
Aug 6th 2008, 19:24 |
polerin |
Ins|de: when are you calling controller actions from another action? |
# |
Aug 6th 2008, 19:23 |
Ins|de |
how do i know in a method action where it was called by another method or when it was called as a request ? |
# |
Aug 6th 2008, 19:21 |
polerin |
because it must be done on every query (that's not a 'list' ) |
# |
Aug 6th 2008, 19:20 |
polerin |
I'm attaching something through a behavior on beforeFind, and I need to make sure containiable doesn't knock off the attachment/recursive depth |
# |
Aug 6th 2008, 19:20 |
gwoo |
polerin: like bindModel does? |
# |
Aug 6th 2008, 19:20 |
polerin |
gwoo: or, if you've a better idea, the end goal is to agument what a model is containing, not to replace it |
# |
Aug 6th 2008, 19:20 |
polerin |
actually, not change, just access :) |
# |
Aug 6th 2008, 19:20 |
nymacro |
work you bastard |
# |
Aug 6th 2008, 19:20 |
gwoo |
thats how it should be done |
# |
Aug 6th 2008, 19:20 |
nymacro |
bloody ACL |
# |
Aug 6th 2008, 19:19 |
gwoo |
polerin: you are looking to change properties |
# |
Aug 6th 2008, 19:19 |
TommyO |
thestaff: you have a view called 'none' |
# |
Aug 6th 2008, 19:19 |
polerin |
gwoo: i'm not looking to attach it, I'm looking to access a behavior's property |
# |
Aug 6th 2008, 19:19 |
gwoo |
polerin: or use attach() |
# |
Aug 6th 2008, 19:19 |
polerin |
mmph, TYAS I guess ;) |
# |
Aug 6th 2008, 19:19 |
thestaff |
which should explain the error |
# |
Aug 6th 2008, 19:19 |
thestaff |
wich load only ajax right ? |
# |
Aug 6th 2008, 19:18 |
TommyO |
polerin: hmm... sounds about right :) |
# |
Aug 6th 2008, 19:18 |
thestaff |
well i was loading this controler however I had this $this->render('none', 'ajax'); in my action method |
# |
Aug 6th 2008, 19:18 |
polerin |
ModelA->Behaviors->BehaviorName->property? |
# |
Aug 6th 2008, 19:18 |
TommyO |
thestaff: ahh... but layout is loaded in all controllers, not just this one, so it must be loaded in all controller or the call must be wrapped in a if (isset($javascript) { ... |
# |
Aug 6th 2008, 19:18 |
polerin |
TommyO: I forget... what's the proper way to reach through a model to reach a behaviors property? |
# |
Aug 6th 2008, 19:17 |
thestaff |
i have var $helpers = array('Html', 'Form', 'Javascript', 'Ajax'); |
# |
Aug 6th 2008, 19:16 |
thestaff |
it's in my controler tho |
# |
Aug 6th 2008, 19:16 |
TommyO |
thestaff: means JavascriptHelper isn't loaded |