Log message #109555

# At Username Text
# Aug 7th 2008, 11:18 franko _psychic: deleting /tmp/cache/*/* seemed to work somewhat, but I have a new error where class Object is not found...
# Aug 7th 2008, 11:18 loki_racer and it all works on any page but the main page
# Aug 7th 2008, 11:18 loki_racer the element is called from another element
# Aug 7th 2008, 11:17 ADmad *is called
# Aug 7th 2008, 11:17 ADmad loki_racer: if the element it called from layout itself then also it wont work..
# Aug 7th 2008, 11:17 loki_racer using this code http://pastebin.com/d73023dbb
# Aug 7th 2008, 11:17 loki_racer http://www.after-the-blast.com/ on the right column there is a poll element, it has about 20 js files that are included with $javascript->link('jqchart/json');
# Aug 7th 2008, 11:17 tbranyen this is actually really intuitive
# Aug 7th 2008, 11:16 tbranyen woot $this->Element->exists() works
# Aug 7th 2008, 11:16 loki_racer and it won't work, any other page will do it, but not /index
# Aug 7th 2008, 11:15 tbranyen well actually... will read return null if it doesn't exist or ""?
# Aug 7th 2008, 11:15 loki_racer as a test, yes, but I tried it on elements called from this page also
# Aug 7th 2008, 11:15 ADmad loki_racer: this statment <?php $javascript->link('effects.core.min',false); ?> is in the layout itself isnt it ?
# Aug 7th 2008, 11:15 tbranyen only issue with read
# Aug 7th 2008, 11:15 jYeckel or assign the id and do a read??
# Aug 7th 2008, 11:14 jYeckel tbranyen: run a find?
# Aug 7th 2008, 11:14 loki_racer ADmad: I can paste the code, or show it to you live, it won't do it
# Aug 7th 2008, 11:14 _psychic_ he put it in there last minute
# Aug 7th 2008, 11:14 _psychic_ hehe
# Aug 7th 2008, 11:14 tbranyen >_<
# Aug 7th 2008, 11:14 ADmad loki_racer: it will work from any view or an element called from view
# Aug 7th 2008, 11:14 tbranyen it does
# Aug 7th 2008, 11:14 _psychic_ just output it in the layout
# Aug 7th 2008, 11:14 tbranyen oh jesus
# Aug 7th 2008, 11:14 loki_racer it's something about the pages_controller used to render www.domain.com/
# Aug 7th 2008, 11:14 tbranyen Quick question, I just checked the API and source code to try and figure this out on my own. How can I check if an entry exists in the DB? Model doesn't seem to have any exists function.
# Aug 7th 2008, 11:14 _psychic_ oh that *is* the layout
# Aug 7th 2008, 11:13 loki_racer ADmad is doesn't work in any of the elements from /index page, but from /forums /polls, etc it does
# Aug 7th 2008, 11:13 ADmad loki_racer:calling $javascript->link in the layout with inline false wont work
# Aug 7th 2008, 11:13 loki_racer look at the pastebin link http://pastebin.com/d447729f0
# Aug 7th 2008, 11:12 _psychic_ loki_racer: can I see the layout file?
# Aug 7th 2008, 11:12 jYeckel hey wondering about complex queries http://pastie.org/249274 wondering how i can get cake not to put '' around my betweens
# Aug 7th 2008, 11:12 loki_racer tomas, the file is in the helper and is actually given to the view class, but it is never echo'd in the head
# Aug 7th 2008, 11:12 loki_racer yes psychic
# Aug 7th 2008, 11:12 tomas- i would just start putting in debugging code (ie 'error_log()' etc) into the core helper at that point to debug it
# Aug 7th 2008, 11:11 _psychic_ loki_racer: got $scripts_for_layout in your layout?
# Aug 7th 2008, 11:11 loki_racer therefore no echo, and the false param should put that file in the head
# Aug 7th 2008, 11:11 _psychic_ ^
# Aug 7th 2008, 11:11 loki_racer i am testing for non inline
# Aug 7th 2008, 11:11 _psychic_ got $scripts_for_layout in your layout?
# Aug 7th 2008, 11:11 loki_racer it doesn't put that js in the head, I know, I know, I can put it in the head, but it's a test.......for some reason on this page, my index page, javascript help can't do not inline