Log message #1034316

# At Username Text
# Sep 13th 2009, 16:28 unclezoot especially as the same code works in a view
# Sep 13th 2009, 16:28 unclezoot well the html is coming out from the element, so im baffled why the js + css arent
# Sep 13th 2009, 16:27 dogmatic69 unclezoot: i had the same problem and also thought it did not work, but it was just cache at the end
# Sep 13th 2009, 16:27 unclezoot it's an admin thing so shouldnt affect performance
# Sep 13th 2009, 16:27 unclezoot ill just build a plugin and be done with it
# Sep 13th 2009, 16:27 jjwdesign I have a rather large bit of code in a component that builds out my conditionals to be used in find() and paginate(). Is it ok to have numeric indices/keys?
# Sep 13th 2009, 16:27 unclezoot i have, they're not there
# Sep 13th 2009, 16:26 dogmatic69 view sorce and find
# Sep 13th 2009, 16:26 unclezoot the files arent even being requested
# Sep 13th 2009, 16:26 dogmatic69 sometimes it has <script> some error </script>
# Sep 13th 2009, 16:26 unclezoot they're not being requested
# Sep 13th 2009, 16:26 unclezoot echo $html->css("/css/admin/nav/fg.menu", null, null, false);
# Sep 13th 2009, 16:26 dogmatic69 if you inspect with firebug, check out what it says
# Sep 13th 2009, 16:26 unclezoot i.e. $javascript->link("/js/fg.menu.js", false);
# Sep 13th 2009, 16:26 unclezoot exactly the same way that it works in my test view
# Sep 13th 2009, 16:25 dogmatic69 how you truing to load the js/css
# Sep 13th 2009, 16:25 unclezoot only the html is coming out
# Sep 13th 2009, 16:25 unclezoot and in the element itself, load various bits of js + css + some html
# Sep 13th 2009, 16:25 unclezoot deploy an admin nav, by using $this->element('admin/nav') in my admin layout
# Sep 13th 2009, 16:24 dogmatic69 what you tring to do?
# Sep 13th 2009, 16:24 dogmatic69 but it does work
# Sep 13th 2009, 16:24 unclezoot so ill have to turn it into a helper then
# Sep 13th 2009, 16:24 unclezoot i see
# Sep 13th 2009, 16:24 dogmatic69 even when using $javascript->link()
# 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?