Log message #1034292

# At Username Text
# Sep 13th 2009, 16:24 unclezoot because my js and css are not appearing in scripts_for_layout but the html is coming out (mysteriously), all the relevant helpers are in the app_controller's $helpers array
# Sep 13th 2009, 16:24 dogmatic69 unclezoot: if you load js in a element it will not load in the body
# Sep 13th 2009, 16:23 unclezoot question about elements: should you be able to use them in a layout, and have the element load js + css?
# Sep 13th 2009, 16:22 HardPhuck this the only way to show validation errors for both models at same time?
# Sep 13th 2009, 16:21 HardPhuck is if(!$this->User->validates() | !$this->User->Subscriber->validates()){
# Sep 13th 2009, 16:21 HardPhuck i have a form that populates two models
# Sep 13th 2009, 16:18 dogmatic69 baked code? ive never seen that in baked code? what ver you see that in
# Sep 13th 2009, 16:17 ionas82 dogmatic69, at least that line is from baked cake and thus works
# Sep 13th 2009, 16:16 ionas82 dogmatic69, maybe the controller reads from there automagically
# Sep 13th 2009, 16:13 HardPhuck solved it thanx
# Sep 13th 2009, 16:12 dogmatic69 HardPhuck: bin your code and the error
# Sep 13th 2009, 16:11 dogmatic69 HardPhuck: what is the matter?
# Sep 13th 2009, 16:11 HardPhuck yes, but if not empty?
# Sep 13th 2009, 16:11 dogmatic69 ionas82: why would you want $this->User->data?
# Sep 13th 2009, 16:10 ionas82 that will populate both, $this->data and $this->User->data
# Sep 13th 2009, 16:10 ionas82 if empty ... $this->data = $this->User->read(null, $id);
# Sep 13th 2009, 16:09 HardPhuck what's the cakephp way to solve that?
# Sep 13th 2009, 16:09 HardPhuck on some data that is just displayed
# Sep 13th 2009, 16:08 HardPhuck but when i submit, i get Undefined index: username
# Sep 13th 2009, 16:08 HardPhuck this line is in if (empty($this->data)) {
# Sep 13th 2009, 16:07 HardPhuck i populate form like: $this->data = $this->User->find...
# Sep 13th 2009, 16:07 HardPhuck one question, which isn't technical i wanna know the php way
# Sep 13th 2009, 16:07 HardPhuck ah found it
# Sep 13th 2009, 16:04 ionas82 but well I will just skip that now
# Sep 13th 2009, 16:04 ionas82 point is I just want to call this one on one field
# Sep 13th 2009, 16:03 ionas82 dogmatic69, yeah I have my validation method for UUID in my app_model
# Sep 13th 2009, 16:03 HardPhuck when i click submit
# Sep 13th 2009, 16:03 HardPhuck just keeps adding the id at the end
# Sep 13th 2009, 16:03 HardPhuck how do i remove the id param from the form
# Sep 13th 2009, 15:57 dogmatic69 np
# Sep 13th 2009, 15:57 HardPhuck thanx
# Sep 13th 2009, 15:57 dogmatic69 yip
# Sep 13th 2009, 15:56 HardPhuck i got all my answers then, use id from session, populate form from DB :)
# Sep 13th 2009, 15:56 Hedz read the info then populate a form
# Sep 13th 2009, 15:56 dogmatic69 $form->input( 'name', array( 'vale' => $session->read( 'Auth.User.name' ) ); is not cool
# Sep 13th 2009, 15:56 Hedz ya
# Sep 13th 2009, 15:56 dogmatic69 $form->input( 'name
# Sep 13th 2009, 15:56 dogmatic69 Hedz: not talking about ids... talking about data... as in all of it
# Sep 13th 2009, 15:55 Hedz the id wont change...
# Sep 13th 2009, 15:55 dogmatic69 if you edit the user the details do not change in the session
# Sep 13th 2009, 15:55 dogmatic69 HardPhuck: you should not do that... session data in auth is not always upto date