Logs for #cakephp

Page 31 of 36,922, showing 100 records out of 3,692,143 total, starting on record 3,001, ending on 3,100

# At Username Text
# Aug 7th 2008, 10:44 _psychic_ you can use it anywhere in your app
# Aug 7th 2008, 10:44 stevieboy _psychic_: i guess i just dont know my problem yet... i'll start and get back if I have a more explicit problem
# Aug 7th 2008, 10:44 chris12349 _psychic_: correct
# Aug 7th 2008, 10:44 stevieboy sorry for bugging you
# Aug 7th 2008, 10:44 _psychic_ chris12349: use this technique http://bakery.cakephp.org/articles/view/creating-reusable-elements-with-requestaction
# Aug 7th 2008, 10:45 _psychic_ stevieboy: np just trying to narrow the scope so I can help
# Aug 7th 2008, 10:45 stevieboy _psychic_: will do
# Aug 7th 2008, 10:45 chris12349 _psychic_: thanks, I'll take a look at that
# Aug 7th 2008, 10:48 loki_racer in my layout echo $javascript->link('effects.core.min'); works but $javascript->link('effects.core.min',false); does not even though I have echo $scripts_for_layout; in my <head>
# Aug 7th 2008, 10:48 loki_racer any ideas
# Aug 7th 2008, 10:48 loki_racer it only seems to happen on my index page
# Aug 7th 2008, 10:49 chrysanthemum Is the layout the correct place to put navigation?
# Aug 7th 2008, 10:49 loki_racer chrysanthemum: I usually put it in an element
# Aug 7th 2008, 10:50 webpigeon Hello everyone, I was wondering if anyone knew where I could find documentation on datasources (and possibly any documentation on how to write them). I've looked around but I can't seem to fine anything :/
# Aug 7th 2008, 10:51 _psychic_ no official docs yet
# Aug 7th 2008, 10:51 _psychic_ still in the works
# Aug 7th 2008, 10:51 webpigeon damn, thought so, Thanks anyway :)
# Aug 7th 2008, 10:51 _psychic_ you can look at the core datasource(s) for an idea though
# Aug 7th 2008, 10:51 webpigeon mmm, i'll have a look
# Aug 7th 2008, 10:52 _psychic_ and this: http://bakery.cakephp.org/articles/view/ldap-datasource-for-cakephp
# Aug 7th 2008, 10:56 Matt1 is there some array/object I can echo out when debugging the language setting for the site language ?
# Aug 7th 2008, 10:57 Matt1 like if I have english as locale, how would I get 'EN' ?
# Aug 7th 2008, 10:57 tomas- is it possible to tell $this->paginate() some conditions parameters? I am doing a FULLTEXT search and need to pass "MATCH(cols) AGAINST ('phrase')" to the WHERE
# Aug 7th 2008, 11:01 tomas- gah, $this->paginate('Model',array('cond1 = ...'))
# Aug 7th 2008, 11:01 tomas- damned cake code base being so clean
# Aug 7th 2008, 11:01 tomas- that i can just read it as documentation
# Aug 7th 2008, 11:03 _psychic_ haha
# Aug 7th 2008, 11:03 franko I'm deploying cake onto a server, getting this error suddenly - has anyone encountered it?
# Aug 7th 2008, 11:03 franko Fatal error: Cannot redeclare class Set in /var/www/.... on line 0
# Aug 7th 2008, 11:04 _psychic_ franko: clear your app/tmp/cache/*/* files
# Aug 7th 2008, 11:04 franko great, thanks!
# Aug 7th 2008, 11:04 _psychic_ ACTION just made a shell that does that
# Aug 7th 2008, 11:05 tomas- I like cake.
# Aug 7th 2008, 11:09 tomas- (this) cake is sweet.....
# Aug 7th 2008, 11:09 loki_racer http://pastebin.com/d447729f0 come on, someone has to know what line 58 doesn't do anything
# Aug 7th 2008, 11:10 _psychic_ loki_racer: ?
# Aug 7th 2008, 11:10 tomas- echo $javascript->link ?
# Aug 7th 2008, 11:10 tomas- with the 'echo'?
# Aug 7th 2008, 11:10 _psychic_ yeah
# 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
# Aug 7th 2008, 11:11 _psychic_ got $scripts_for_layout in your layout?
# Aug 7th 2008, 11:11 loki_racer i am testing for non inline
# Aug 7th 2008, 11:11 _psychic_ ^
# 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_ loki_racer: got $scripts_for_layout in your layout?
# 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:12 loki_racer yes psychic
# 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 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 _psychic_ loki_racer: can I see the layout file?
# Aug 7th 2008, 11:13 loki_racer look at the pastebin link http://pastebin.com/d447729f0
# 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 ADmad is doesn't work in any of the elements from /index page, but from /forums /polls, etc it does
# Aug 7th 2008, 11:14 _psychic_ oh that *is* the layout
# 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 loki_racer it's something about the pages_controller used to render www.domain.com/
# Aug 7th 2008, 11:14 tbranyen oh jesus
# Aug 7th 2008, 11:14 _psychic_ just output it in the layout
# Aug 7th 2008, 11:14 tbranyen it does
# 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 >_<
# Aug 7th 2008, 11:14 _psychic_ hehe
# Aug 7th 2008, 11:14 _psychic_ he put it in there last minute
# 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 jYeckel tbranyen: run a find?
# Aug 7th 2008, 11:15 jYeckel or assign the id and do a read??
# Aug 7th 2008, 11:15 tbranyen only issue with read
# 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 loki_racer as a test, yes, but I tried it on elements called from this page also
# Aug 7th 2008, 11:15 tbranyen well actually... will read return null if it doesn't exist or ""?
# 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:16 tbranyen woot $this->Element->exists() works
# Aug 7th 2008, 11:17 tbranyen this is actually really intuitive
# 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 loki_racer using this code http://pastebin.com/d73023dbb
# 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 ADmad *is called
# Aug 7th 2008, 11:18 loki_racer the element is called from another element
# Aug 7th 2008, 11:18 loki_racer and it all works on any page but the main page
# 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 franko ever seen that one?
# Aug 7th 2008, 11:18 _psychic_ mmm
# Aug 7th 2008, 11:18 _psychic_ no
# 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 ADmad loki_racer: and who calls the *another element* ?
# Aug 7th 2008, 11:18 _psychic_ franko: I hope you didn't delete directories in there
# Aug 7th 2008, 11:19 loki_racer layout calls element right_column which calls element poll
# Aug 7th 2008, 11:19 franko no, just 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: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: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 _psychic_ franko: what didn't work?
# Aug 7th 2008, 11:20 loki_racer oh damn
# Aug 7th 2008, 11:20 loki_racer so you can't have layout->element->element to include js?
# Aug 7th 2008, 11:20 franko psychic: deleting the tmp/cache/*/* files on the server...
# Aug 7th 2008, 11:21 ADmad loki_racer: not with inline false...
# Aug 7th 2008, 11:21 _psychic_ franko: still got the same error after you cleare the files?
# Aug 7th 2008, 11:21 loki_racer bunk
# Aug 7th 2008, 11:21 loki_racer why the hell is that
# Aug 7th 2008, 11:21 _psychic_ if you've got files there from CVS that's bad