Log message #109861

# At Username Text
# Aug 7th 2008, 13:31 jaredhoyt or read() or whatever
# Aug 7th 2008, 13:31 jaredhoyt $this->data = $this->Model->find()
# Aug 7th 2008, 13:31 jaredhoyt it is if you set it in the controller
# Aug 7th 2008, 13:30 beatzombies jaredhoyt: hmm, is there a $this->data varialbe defined in the view?
# Aug 7th 2008, 13:28 beatzombies jaredhoyt: let me try that
# Aug 7th 2008, 13:28 jaredhoyt beatzombies: have you do a pr() of $this->data in your view to make sure the correct field is getting loaded w/ the correct value?
# Aug 7th 2008, 13:27 beatzombies jaredhoyt: i have a feeling i am going about things the wrong way
# Aug 7th 2008, 13:27 beatzombies jaredhoyt: nope
# Aug 7th 2008, 13:27 zmonteca question about routing....when you Router::connect() something, does that actually map or redirect? It seems when i'm using that it's actually redirecting...simpley because my Session['Auth']['redirect'] is getting set with a url from Router::Connect()
# Aug 7th 2008, 13:27 jaredhoyt beatzombies: did you get your checkboxes working?
# Aug 7th 2008, 13:23 jaredhoyt D
# Aug 7th 2008, 13:23 atula I use $this->
# Aug 7th 2008, 13:22 jaredhoyt how would you call any method in the controller? :)
# Aug 7th 2008, 13:21 atula jaredhoyt: to call it in a controller's action, do I have to do $this->__myPrivateFunction or can I just call it __myPrivateFunction ?
# Aug 7th 2008, 13:20 atula thank you jaredhoyt
# Aug 7th 2008, 13:20 jaredhoyt atula: _ for protected, __ for private
# Aug 7th 2008, 13:19 francky06l Hi Bakers :-)
# Aug 7th 2008, 13:19 atula to declare a function that's not an action do I do function __functionname() in the controller ?
# Aug 7th 2008, 13:18 beatzombies teknoid: here is the controller code I am using http://bin.cakephp.org/view/1338264000
# Aug 7th 2008, 13:18 jaredhoyt k ;)
# Aug 7th 2008, 13:18 tomas- jaredhoyt, thanks, its everything
# Aug 7th 2008, 13:17 jaredhoyt that might just be submission buttons though
# Aug 7th 2008, 13:17 jaredhoyt tomas-: try $this->params['form']
# Aug 7th 2008, 13:16 thestaff how is this obtrusive
# Aug 7th 2008, 13:16 tomas- does anyone know how i might be able to get form fields that DONT fall under the 'data[Model][field]' convention? ie for ordinary raw forms (not generated by $form)
# Aug 7th 2008, 13:16 thestaff why not ?
# Aug 7th 2008, 13:16 anthony thestaff: i personally wouldn't use obtrusive javascript
# Aug 7th 2008, 13:15 beatzombies teknoid: is there additional information i can post to help debug this?
# Aug 7th 2008, 13:15 beatzombies teknoid: so i tried echo $form->checkbox('ContributorsItem.contributed'); and it still does not work
# Aug 7th 2008, 13:15 thestaff cuz it closes the thickbox and refresh the page as well
# Aug 7th 2008, 13:15 thestaff and that works fine
# Aug 7th 2008, 13:15 thestaff anthony, there is actually much simpler, i changed my closing onclick by this :onclick="self.parent.window.location.reload(true);"
# Aug 7th 2008, 13:14 beatzombies teknoid: ah
# Aug 7th 2008, 13:14 teknoid .. type and tab
# Aug 7th 2008, 13:14 teknoid beatzombies: tab
# Aug 7th 2008, 13:14 beatzombies or <name>:
# Aug 7th 2008, 13:13 atula to declare a function that's not an action do I do function __functionname() in the controller ?
# Aug 7th 2008, 13:13 beatzombies btw is there a way to automatically append teknoid: to my messages ?
# Aug 7th 2008, 13:13 beatzombies i print out the array i retrieve and it appears to be correct
# Aug 7th 2008, 13:13 teknoid beatzombies: that is if you have retrieved the associated data correclty
# Aug 7th 2008, 13:13 beatzombies ok, lemme give that shot