# |
Aug 7th 2008, 11:28 |
loki_racer |
painful |
# |
Aug 7th 2008, 11:28 |
ADmad |
loki_racer: afaik |
# |
Aug 7th 2008, 11:28 |
ADmad |
loki_racer: no |
# |
Aug 7th 2008, 11:28 |
jYeckel |
one sec |
# |
Aug 7th 2008, 11:28 |
jYeckel |
hmm |
# |
Aug 7th 2008, 11:28 |
loki_racer |
ADmad so there is no way to have an element called from the layout to load js files into the <head>? |
# |
Aug 7th 2008, 11:27 |
ADmad |
jYeckel: "Resource.month BETWEEN ? AND ?" => array(3,12) |
# |
Aug 7th 2008, 11:27 |
jYeckel |
yeah i just cant figure out how to do a between in a where |
# |
Aug 7th 2008, 11:25 |
jYeckel |
nope :( |
# |
Aug 7th 2008, 11:25 |
jYeckel |
wait i think i got it :D |
# |
Aug 7th 2008, 11:22 |
jYeckel |
http://pastie.org/249274 updated my pastie with the generated sql wondering what i can do to fix the betweens i tried to assign my mont an array( 'between' => array('1','2')) but didnt work |
# |
Aug 7th 2008, 11:22 |
ADmad |
loki_racer: cause cake need to put the script tag into $scripts_for_layout before the render of layout starts.... so when u put the call in layout or its element rendering of layout has already started.. |
# |
Aug 7th 2008, 11:22 |
loki_racer |
glad you guys helped me figure it out, now just want to understand why js link only works via the view file |
# |
Aug 7th 2008, 11:21 |
franko |
okay, will try without the CVS files, cheers |
# |
Aug 7th 2008, 11:21 |
loki_racer |
haha....i'm not mad |
# |
Aug 7th 2008, 11:21 |
_psychic_ |
loki_racer: take it easy |
# |
Aug 7th 2008, 11:21 |
_psychic_ |
if you've got files there from CVS that's bad |
# |
Aug 7th 2008, 11:21 |
loki_racer |
why the hell is that |
# |
Aug 7th 2008, 11:21 |
loki_racer |
bunk |
# |
Aug 7th 2008, 11:21 |
_psychic_ |
franko: still got the same error after you cleare the files? |
# |
Aug 7th 2008, 11:21 |
ADmad |
loki_racer: not with inline false... |
# |
Aug 7th 2008, 11:20 |
franko |
psychic: deleting the tmp/cache/*/* files on the server... |
# |
Aug 7th 2008, 11:20 |
loki_racer |
so you can't have layout->element->element to include js? |
# |
Aug 7th 2008, 11:20 |
loki_racer |
oh damn |
# |
Aug 7th 2008, 11:20 |
_psychic_ |
franko: what didn't work? |
# |
Aug 7th 2008, 11:20 |
ADmad |
loki_racer: look pal just make sure that statment is in a view or in an element which is called by a view and it will surely work.. |
# |
Aug 7th 2008, 11:20 |
loki_racer |
that does not work but when layout calls right_column and calls element info it is capable of including the js files |
# |
Aug 7th 2008, 11:19 |
franko |
at first it didn't work, but I took a fresh cvs checkout and got this new error - yay! |
# |
Aug 7th 2008, 11:19 |
franko |
no, just files |
# |
Aug 7th 2008, 11:19 |
loki_racer |
layout calls element right_column which calls element poll |
# |
Aug 7th 2008, 11:18 |
_psychic_ |
franko: I hope you didn't delete directories in there |
# |
Aug 7th 2008, 11:18 |
ADmad |
loki_racer: and who calls the *another element* ? |
# |
Aug 7th 2008, 11:18 |
jaredhoyt |
loki_racer: can you not consolidate that code? that's a lot of requests =P |
# |
Aug 7th 2008, 11:18 |
_psychic_ |
no |
# |
Aug 7th 2008, 11:18 |
_psychic_ |
mmm |
# |
Aug 7th 2008, 11:18 |
franko |
ever seen that one? |
# |
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.. |