# |
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 |
# |
Aug 6th 2008, 19:13 |
cozby |
strange thing has occurred, so I set back a an array from my controller to my view... I have form->input statement not specifying the type but it automatically turned into a select (drop down box) |
# |
Aug 6th 2008, 19:12 |
snizwickit |
i don't think i can do it with associations |
# |
Aug 6th 2008, 19:12 |
snizwickit |
and i need to get a list of AeVersions for an action in my projects controller |
# |
Aug 6th 2008, 19:12 |
snizwickit |
well my model "Projects" has a foreign key to my other model "AeVersions" |
# |
Aug 6th 2008, 19:11 |
polerin |
I was taking a break and playing some cs:s |
# |
Aug 6th 2008, 19:11 |
polerin |
hehe |
# |
Aug 6th 2008, 19:10 |
TommyO |
that was for my lazy benefit, not a rtfm :) |
# |
Aug 6th 2008, 19:09 |
TommyO |
no... idea :) |
# |
Aug 6th 2008, 19:09 |
polerin |
no? |
# |
Aug 6th 2008, 19:09 |
polerin |
TommyO: haven't tested it yet, but i'm thinking it has to do with $runtime |
# |
Aug 6th 2008, 19:08 |
TommyO |
polerin: figure out your containable puzzle? |