Logs for #cakephp

Page 8 of 36,430, showing 100 records out of 3,642,926 total, starting on record 701, ending on 800

# At Username Text
# Aug 6th 2008, 18:59 renan_saddam from the table
# Aug 6th 2008, 18:59 renan_saddam sorry, let me double check
# Aug 6th 2008, 19:00 snizwickit actually, it changed back to textboxes after I removed the $uses variable from the controller
# Aug 6th 2008, 19:00 snizwickit er
# Aug 6th 2008, 19:01 snizwickit changed back to checkboxes
# Aug 6th 2008, 19:03 TommyO snizwickit: you really shouldn't need $uses anyway
# Aug 6th 2008, 19:04 TommyO snizwickit: did your $uses array include the default Model?
# Aug 6th 2008, 19:04 snizwickit TommyO: yeah, and I need the $uses for another query in the action
# Aug 6th 2008, 19:04 TommyO really? why? can't reach through associations?
# Aug 6th 2008, 19:04 polerin TommyO: heh
# Aug 6th 2008, 19:04 TommyO $uses is an override that should be avoided
# Aug 6th 2008, 19:06 TommyO more often than not a need for $uses is a process that needs rethinking, imho
# Aug 6th 2008, 19:08 TommyO polerin: figure out your containable puzzle?
# 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:09 polerin no?
# Aug 6th 2008, 19:09 TommyO no... idea :)
# Aug 6th 2008, 19:10 TommyO that was for my lazy benefit, not a rtfm :)
# Aug 6th 2008, 19:11 polerin hehe
# Aug 6th 2008, 19:11 polerin I was taking a break and playing some cs:s
# Aug 6th 2008, 19:12 snizwickit well my model "Projects" has a foreign key to my other model "AeVersions"
# 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 i don't think i can do it with associations
# 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:13 cozby with data from the array I sent from the controller
# Aug 6th 2008, 19:13 cozby is that just some nifty feature?
# 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:14 polerin that's what associations are for :)
# Aug 6th 2008, 19:14 snizwickit aaah
# Aug 6th 2008, 19:14 snizwickit gotcha
# Aug 6th 2008, 19:15 thestaff do you guys know if modalbox works fine with 1.1 ?
# Aug 6th 2008, 19:15 thestaff or i really need to upgrade ?
# Aug 6th 2008, 19:15 TommyO $this->Projects->AeVersions->find('list'); to be precise-ish :)
# 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 polerin hehe
# Aug 6th 2008, 19:15 TommyO client-side vs server-side
# 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:16 TommyO preciseish should be a word :)
# Aug 6th 2008, 19:16 thestaff line 37 :echo $javascript->link('scriptaculous.js?load=effects');
# 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 TommyO thestaff: means JavascriptHelper isn't loaded
# Aug 6th 2008, 19:16 thestaff it's in my controler tho
# Aug 6th 2008, 19:17 thestaff i have var $helpers = array('Html', 'Form', 'Javascript', 'Ajax');
# 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: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 ModelA->Behaviors->BehaviorName->property?
# 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 TommyO polerin: hmm... sounds about right :)
# Aug 6th 2008, 19:19 thestaff wich load only ajax right ?
# Aug 6th 2008, 19:19 thestaff which should explain the error
# Aug 6th 2008, 19:19 polerin mmph, TYAS I guess ;)
# Aug 6th 2008, 19:19 gwoo polerin: or use attach()
# 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 TommyO thestaff: you have a view called 'none'
# Aug 6th 2008, 19:19 gwoo polerin: you are looking to change properties
# Aug 6th 2008, 19:20 nymacro bloody ACL
# Aug 6th 2008, 19:20 gwoo thats how it should be done
# Aug 6th 2008, 19:20 nymacro work you bastard
# Aug 6th 2008, 19:20 polerin actually, not change, just access :)
# 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 gwoo polerin: like bindModel does?
# 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:21 polerin because it must be done on every query (that's not a 'list' )
# 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:24 polerin Ins|de: when are you calling controller actions from another action?
# Aug 6th 2008, 19:24 renan_saddam Ins|de: maybe $this->action
# 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 Ins|de polerin, should i implement that action in a model instead ?
# Aug 6th 2008, 19:25 Ins|de i think you're right
# 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 polerin and then call on that functionality in two places
# Aug 6th 2008, 19:26 polerin gwoo: any ideas on the containable question?
# 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: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:28 polerin )
# Aug 6th 2008, 19:28 polerin everyone's knew at some point
# Aug 6th 2008, 19:30 polerin s/knew/new
# Aug 6th 2008, 19:30 polerin wow.. long day already
# Aug 6th 2008, 19:32 batcoder-7 hmm
# 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: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:33 batcoder-7 should i do this in javascript or cakephp ?
# Aug 6th 2008, 19:33 batcoder-7 if cakephp is there anything to help me with htis built into cakephp ?
# Aug 6th 2008, 19:33 polerin ACTION blinks
# Aug 6th 2008, 19:33 polerin you're likely goign to use at least a snippit of JS, most of the popular methods for doing that do
# Aug 6th 2008, 19:34 batcoder-7 hmmmmm
# Aug 6th 2008, 19:34 batcoder-7 really ?
# Aug 6th 2008, 19:34 batcoder-7 casue i want my site accessible without JS
# Aug 6th 2008, 19:34 polerin but you can use an element to build it, or just put it straight into your layout
# Aug 6th 2008, 19:34 Hedz i need to use the CakeSession in config/database.php. Is there a way to use the SessionHelper?
# Aug 6th 2008, 19:35 polerin Hedz: what are you trying to do?
# Aug 6th 2008, 19:35 batcoder-7 i mean i am going to have like 5 main tabs and when one of those tabs are click the page loads and loads the main page for that tab plus like 5 nested links / menu under that polerin
# Aug 6th 2008, 19:35 polerin it has to do with IE not supporting :hover on anything except <a>'s
# Aug 6th 2008, 19:35 polerin oh, I was assuming a dropdown
# Aug 6th 2008, 19:35 batcoder-7 naw
# Aug 6th 2008, 19:35 batcoder-7 no dropdown
# Aug 6th 2008, 19:35 batcoder-7 a click + page load is fine
# Aug 6th 2008, 19:35 polerin nah, you can do that in plain (x)html with css
# Aug 6th 2008, 19:36 polerin and put it in an element, or something of that nature
# Aug 6th 2008, 19:36 batcoder-7 but i need cake to figure out which page its on and to build the 2nd tir menu right ?
# Aug 6th 2008, 19:36 Hedz i want to change the default database settings depending on a session var