Log message #107229

# At Username Text
# 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
# Aug 6th 2008, 19:16 polerin Tommy says "THAT IS IRRELEVANT!" ;) I get the image of an irishman standing up and waving his finger around at someone
# Aug 6th 2008, 19:16 thestaff line 37 :echo $javascript->link('scriptaculous.js?load=effects');
# Aug 6th 2008, 19:16 TommyO preciseish should be a word :)
# Aug 6th 2008, 19:16 thestaff why do I get this error : Fatal error: Call to a member function link() on a non-object in C:\Program Files\EasyPHP 2.0b1\www\app\views\layouts\default.thtml on line 37
# Aug 6th 2008, 19:15 TommyO client-side vs server-side
# Aug 6th 2008, 19:15 polerin hehe
# Aug 6th 2008, 19:15 TommyO thestaff: modalbox is javascript so will of course work with 1.1/ it is 100% irrelevant
# Aug 6th 2008, 19:15 TommyO $this->Projects->AeVersions->find('list'); to be precise-ish :)
# Aug 6th 2008, 19:15 thestaff or i really need to upgrade ?
# Aug 6th 2008, 19:15 thestaff do you guys know if modalbox works fine with 1.1 ?
# Aug 6th 2008, 19:14 snizwickit gotcha
# Aug 6th 2008, 19:14 snizwickit aaah
# Aug 6th 2008, 19:14 polerin that's what associations are for :)
# Aug 6th 2008, 19:14 polerin snizwickit: sure it can $this->Projects->find() with a recursive, or $this->Projects->AeVersions->find()
# Aug 6th 2008, 19:13 cozby is that just some nifty feature?
# Aug 6th 2008, 19:13 cozby with data from the array I sent from the controller