Logs for #cakephp

Page 30 of 36,922, showing 100 records out of 3,692,143 total, starting on record 2,901, ending on 3,000

# At Username Text
# Aug 7th 2008, 10:14 jonathan_ ok
# Aug 7th 2008, 10:14 TommyO like I just added this line: $queryData['conditions'] = array_merge(array($this->alias . '.active' => 1), $queryData['conditions']);
# Aug 7th 2008, 10:14 jonathan_ so you queries are append with that condition
# Aug 7th 2008, 10:15 TommyO well, merged with that as a defualt. yep. so if I want otherwise I can ask for 'active' => array(0, 1) say for my admin methods
# Aug 7th 2008, 10:16 TommyO otherwise, all queries only apply to rows marked 'active', which I use frequently
# Aug 7th 2008, 10:16 jonathan_ cool
# Aug 7th 2008, 10:17 gwoo Lemon|work: yeah that shoudl be the case since all the paths are cache on the first run
# Aug 7th 2008, 10:18 gwoo Lemon|work: all the directories are search for classes, and object map and file map is built
# Aug 7th 2008, 10:18 ammadsaleem is it possible to create a function once and call it everywhere
# Aug 7th 2008, 10:18 ammadsaleem ?
# Aug 7th 2008, 10:18 gwoo after the first run its cached so its a lot faster
# Aug 7th 2008, 10:18 gwoo ammadsaleem: what is the name of this function?
# Aug 7th 2008, 10:18 jonathan_ @ammadsaleem: declare it in the appcontroller class
# Aug 7th 2008, 10:19 jonathan_ but that is bad practice (i think)
# Aug 7th 2008, 10:19 gwoo jonathan_: no
# Aug 7th 2008, 10:19 gwoo it wouldnt be
# Aug 7th 2008, 10:19 gwoo that would only be available to controllers
# Aug 7th 2008, 10:19 jonathan_ well depending on what it
# Aug 7th 2008, 10:19 jonathan_ is
# Aug 7th 2008, 10:19 ammadsaleem then how to call it
# Aug 7th 2008, 10:19 gwoo would not be available "everywher"
# Aug 7th 2008, 10:20 jonathan_ i'll let the wise man answer the question
# Aug 7th 2008, 10:20 gwoo ammadsaleem: what is the name of your funciton? what does it do?
# Aug 7th 2008, 10:20 gwoo jonathan_: we dont just give away answers around here :)
# Aug 7th 2008, 10:20 gwoo we make people work for them
# Aug 7th 2008, 10:20 jonathan_ good practice
# Aug 7th 2008, 10:20 jonathan_ i agree, just trying to be a smart arse
# Aug 7th 2008, 10:21 jonathan_ ^_^
# Aug 7th 2008, 10:21 ammadsaleem testFunction($str1, $str2)
# Aug 7th 2008, 10:21 flzz is there a reason 1.2 defaults to allowing browsers to cache pages? and is Controller::disableCache() the appropriate way to deal with this?
# Aug 7th 2008, 10:21 gwoo ammadsaleem: testFunction?
# Aug 7th 2008, 10:21 gwoo what does it do?
# Aug 7th 2008, 10:22 ammadsaleem its my user defined function
# Aug 7th 2008, 10:22 gwoo ammadsaleem: what does it do?
# Aug 7th 2008, 10:23 gwoo ammadsaleem: i know what it is, what i dont know is the name and what it does
# Aug 7th 2008, 10:23 ammadsaleem simply takes an argument if its 1 displays enable
# Aug 7th 2008, 10:23 ammadsaleem else disable
# Aug 7th 2008, 10:23 gwoo ammadsaleem: ok that is a helper method
# Aug 7th 2008, 10:28 TommyO ammadsaleem: also, cake has a simliar method ife(), so: echo ife($value == 1, 'enabled', 'disabled'); might do what you want
# Aug 7th 2008, 10:30 moelee trying to set a group to a parent group but the new aro created is in the root node of the tree.. any way for the new aro to be nested underneath its parent aro?
# Aug 7th 2008, 10:30 ammadsaleem I want to define my own functions
# Aug 7th 2008, 10:30 ammadsaleem so that I can call them in my view
# Aug 7th 2008, 10:30 loki_racer what would cause $javascript->link('jqchart/json',false); to work in one element, but not in another?
# Aug 7th 2008, 10:31 gwoo ammadsaleem: like i said use a helper
# Aug 7th 2008, 10:31 jonathan_ @ammadsaleem http://book.cakephp.org/view/98/helpers
# Aug 7th 2008, 10:33 seghezzi Hi what would be the best way to document a proyect using diagrams??
# Aug 7th 2008, 10:33 moelee umm.. visio?
# Aug 7th 2008, 10:33 jonathan_ omnigraffle
# Aug 7th 2008, 10:33 seghezzi is that UML?
# Aug 7th 2008, 10:33 seghezzi i'm running ubuntu, rather not use visio :P
# Aug 7th 2008, 10:33 jonathan_ visio is, omnigraffle kinda sorta
# Aug 7th 2008, 10:34 seghezzi ic
# Aug 7th 2008, 10:34 jonathan_ search freshmeat for a project, i saw one a while back
# Aug 7th 2008, 10:34 seghezzi i'll give it a look then, thanks :D
# Aug 7th 2008, 10:34 zeen anyone know of a way/hack to push data to browser?
# Aug 7th 2008, 10:35 jonathan_ @zeen , like instead of manually polling?
# Aug 7th 2008, 10:35 adj zeen: rails had a project called juggernaut to do that, but i don't think it was very well recieved
# Aug 7th 2008, 10:35 zeen ya
# Aug 7th 2008, 10:35 zeen i know it's a hack job which ever way.. just wondering if anyone knew the best hack job
# Aug 7th 2008, 10:35 zeen will check it out abj
# Aug 7th 2008, 10:35 adj it embedded a tiny flash object that opened a socket to a server process that would then push data to the clients
# Aug 7th 2008, 10:35 zeen ah that sounds perfect
# Aug 7th 2008, 10:36 adj i have no idea how rails-centric it is
# Aug 7th 2008, 10:36 jonathan_ or iframe and a lightweight comet server
# Aug 7th 2008, 10:36 jonathan_ ala facebook chat
# Aug 7th 2008, 10:36 adj facebook chat is slick. all erlang, no?
# Aug 7th 2008, 10:36 zeen ah that's how facebook does it
# Aug 7th 2008, 10:36 jonathan_ yeah
# Aug 7th 2008, 10:37 zeen unusual syntax
# Aug 7th 2008, 10:38 stevieboy question: i want to save a sequence of id's to remember the sorting later on. how can i do this with cakemagic? :)
# Aug 7th 2008, 10:39 _psychic_ save where?
# Aug 7th 2008, 10:39 stevieboy i just need to save a string or sth in the db with the numbers in the correct order
# Aug 7th 2008, 10:39 primeminister how was it again when you have seen bugs/glitches in the repo version of cake 1.2?
# Aug 7th 2008, 10:39 primeminister just throw them on irc?
# Aug 7th 2008, 10:39 _psychic_ trac.cakephp.org
# Aug 7th 2008, 10:40 primeminister yeah? make a ticket even it is a dev branche?
# Aug 7th 2008, 10:40 _psychic_ stevieboy: got a model for the table you want to save the data in?
# Aug 7th 2008, 10:40 _psychic_ primeminister: yeah
# Aug 7th 2008, 10:40 primeminister _psychic_: alright. will do
# Aug 7th 2008, 10:40 _psychic_ primeminister: make sure it's not already logged though
# Aug 7th 2008, 10:40 primeminister ) ok
# Aug 7th 2008, 10:40 stevieboy _psychic_: yes i do
# Aug 7th 2008, 10:40 stevieboy primeminister: enter it in google... they will handle it :)
# Aug 7th 2008, 10:40 TommyO primeminister: make a test to prove the ticket would be appreciated
# Aug 7th 2008, 10:41 primeminister ) alrighty. thx all
# Aug 7th 2008, 10:41 _psychic_ stevieboy: $this->Model->save($data);
# Aug 7th 2008, 10:41 zeen aww no Juggernaut for php
# Aug 7th 2008, 10:41 chris12349 I want to make a database driven menu and I'm trying to set it up in an element to add to my layout. I've created a menu controller and added a "uses menu" to the app_controller. Is this the proper way of doing this? (cake 1.1.19)
# Aug 7th 2008, 10:41 _psychic_ stevieboy: where $data is a keyed array after your model name and it's fields
# Aug 7th 2008, 10:41 _psychic_ $data['Model']['field'] = 'value';
# Aug 7th 2008, 10:42 _psychic_ chris12349: add the method to the menu controller
# Aug 7th 2008, 10:42 _psychic_ what's in the menu?
# Aug 7th 2008, 10:42 TommyO primeminister: what's the bug related to?
# Aug 7th 2008, 10:42 primeminister TommyO: bake
# Aug 7th 2008, 10:42 stevieboy _psychic_: yes, i know that. my prob is that I want the user to arrange items at will (javascript) and want to store the sequence for later reloading
# Aug 7th 2008, 10:43 chris12349 _psychic_: It's a horizontal drop down so it uses findallthreaded to build it
# Aug 7th 2008, 10:43 _psychic_ stevieboy: what part of that do you need help with?
# Aug 7th 2008, 10:43 _psychic_ chris12349: probably don't need it in app controller
# Aug 7th 2008, 10:43 chris12349 _psychic_: well I put it there because it will only work in /menu/*
# Aug 7th 2008, 10:44 _psychic_ chris12349: are you using an element to display the menu?