Log message #114144

# At Username Text
# Aug 9th 2008, 17:36 jaredhoyt no, you could do it in the startup() or initialize()
# Aug 9th 2008, 17:36 jezek do i have to put $userInstance = ClassRegistry::init('User'); within every function?
# Aug 9th 2008, 17:36 jezek yeah
# Aug 9th 2008, 17:35 jaredhoyt jezek: have you read the last section of this : http://book.cakephp.org/view/62/components#mvc-class-access-within-components-65
# Aug 9th 2008, 17:34 jezek i'd rather not have to
# Aug 9th 2008, 17:34 jezek he just asked that
# Aug 9th 2008, 17:34 jezek no
# Aug 9th 2008, 17:34 jaredhoyt jezek: are you trying to access a model that is included in the $uses of the component's calling controller?
# Aug 9th 2008, 17:34 jezek i guess i could
# Aug 9th 2008, 17:34 jezek no
# Aug 9th 2008, 17:33 jaredhoyt np
# Aug 9th 2008, 17:32 primeminister_ jaredhoyt: thnx!
# Aug 9th 2008, 17:32 Matt1 jezek: you are calling it from a controller, right ?
# Aug 9th 2008, 17:32 jaredhoyt right
# Aug 9th 2008, 17:32 primeminister_ jaredhoyt: and then do a save without validation
# Aug 9th 2008, 17:32 primeminister_ jaredhoyt: ah of course
# Aug 9th 2008, 17:31 jezek so i have to load the model somewhere else?
# Aug 9th 2008, 17:31 jaredhoyt if you're validating both models at the same time, it would just be something like $this->Modelx->set($this->data); $this->Modely->set($this->data); if($this->Modelx->validates() andand $this->Modely->validates()) { }
# Aug 9th 2008, 17:31 primeminister_ jaredhoyt: yeah
# Aug 9th 2008, 17:31 jaredhoyt primeminister: you're going to have to validate Modely the same way you do Modelx
# Aug 9th 2008, 17:29 kjell Hi all! I am wondering what would be the graceful/proper way to disable a rss feed besides just sending the reader-request to dead end. Some subscribers probably won't recognize. Any advise on good practices?
# Aug 9th 2008, 17:29 Matt1 jezek: http://bin.cakephp.org/view/998335493
# Aug 9th 2008, 17:29 jezek there has to be an easier way
# Aug 9th 2008, 17:28 jaredhoyt *kinda
# Aug 9th 2008, 17:28 jaredhoyt geez, didn't realize so many people had problems using my wizard component... i never kept up with google groups or comments... kind feel like a jerk :/
# Aug 9th 2008, 17:27 jezek i try to and it says it's not defined
# Aug 9th 2008, 17:26 Matt1 jezek: propably
# Aug 9th 2008, 17:25 jezek can i put it in the startup function?
# Aug 9th 2008, 17:25 Matt1 jezek: access it in one function and have the other access that function ?
# Aug 9th 2008, 17:23 jezek and i dont want to put that classregistry line within every function. can i put it somewhere else so the model can be accessed from every function?
# Aug 9th 2008, 17:22 jezek how do i access a model within a component
# Aug 9th 2008, 17:19 pyite ho would one go about debugging this? the form is being generated by the form helper, in full
# Aug 9th 2008, 17:18 pyite a checked checkbox does not result in any change in the database
# Aug 9th 2008, 17:18 primeminister like in my form is mainly Modelx fields but one Modely.name
# Aug 9th 2008, 17:18 pyite eh one last (lame) question... for some reason checkboxes do not save in my forms but all other elements do
# Aug 9th 2008, 17:16 aaron50x ok, thx Matt1
# Aug 9th 2008, 17:16 Matt1 aaron50x: http://bakery.cakephp.org/articles/view/creating-reusable-elements-with-requestaction
# Aug 9th 2008, 17:16 primeminister If I have a model Modelx and in that form is a field of another Model (Modely). how can I validate that one and send and error msg
# Aug 9th 2008, 17:15 aaron50x how?
# Aug 9th 2008, 17:15 Matt1 aaron50x: maybe access an controller thru requesaction ?
# Aug 9th 2008, 17:14 aaron50x something like $this->Option->find("currentPath = '$html->here'")