Log message #2301423

# At Username Text
# Sep 23rd 2011, 13:00 robsdonkarls i need some help
# Sep 23rd 2011, 12:59 robsdonkarls hey guys, i coulnt find on cake2 book where they teach you to implement a component
# Sep 23rd 2011, 12:57 dakota at the big statue
# Sep 23rd 2011, 12:57 dakota You turned left instead of right
# Sep 23rd 2011, 12:55 bioiq i'm tring to get cake work on my ubuntu box, but i can't get the cake bake all command can someone tell me where i am wrong?
# Sep 23rd 2011, 11:56 Bigsista never seen this channel that silent... split?!?
# Sep 23rd 2011, 11:55 Bigsista test
# Sep 23rd 2011, 11:53 Bigsista ho can i add an action from app_controller to $allowedActions = array(....) ?!?
# Sep 23rd 2011, 11:52 Bigsista hi all
# Sep 23rd 2011, 11:09 rchavik dakota++
# Sep 23rd 2011, 11:09 rchavik wicked!
# Sep 23rd 2011, 11:08 dakota conditions => array('or' => array(array('email' => ''), array('email' => null)))
# Sep 23rd 2011, 11:07 rchavik how to achieve 'select .... where email = '' or email is null' using the orm ?
# Sep 23rd 2011, 10:58 fenix` sounds so stupid a question now..
# Sep 23rd 2011, 10:58 dakota fenix`: or, perhaps better would be to use static methods, then you can just do Convert::boolVal() anywhere
# Sep 23rd 2011, 10:58 fenix` got it
# Sep 23rd 2011, 10:58 fenix` then $convert->boolVal();
# Sep 23rd 2011, 10:58 dakota fenix`: yup
# Sep 23rd 2011, 10:58 dakota fenix`: so you'd have to create a instance of the object yourself
# Sep 23rd 2011, 10:57 fenix` ok so $convert = new Convert();
# Sep 23rd 2011, 10:57 dakota fenix`: App::uses is basically the same as include($filename);
# Sep 23rd 2011, 10:57 dakota fenix`: neither
# Sep 23rd 2011, 10:56 fenix` or is it like App::Convert()?
# Sep 23rd 2011, 10:56 fenix` i get call to member function on a non-object
# Sep 23rd 2011, 10:56 fenix` $this->Convert->boolVal(1);
# Sep 23rd 2011, 10:56 fenix` App::uses('Convert', 'Lib');
# Sep 23rd 2011, 10:54 rchavik if you put in appcontroller, then it will be avialable app wide, before class , then only in that particular class instance, in method, well, in method and its views
# Sep 23rd 2011, 10:52 rchavik up to you.. :)
# Sep 23rd 2011, 10:52 fenix` inside class dec? or inside function
# Sep 23rd 2011, 10:51 fenix` so where do i put App::uses? outside the class declarations?
# Sep 23rd 2011, 10:50 rchavik App::import is for 1.3
# Sep 23rd 2011, 10:49 fenix` that didn't work so i 'll try yours
# Sep 23rd 2011, 10:49 fenix` rchavik: manual says use this format: App::uses('PaymentProcessor', 'Lib');
# Sep 23rd 2011, 10:48 dakota yeah, I'd make a utility class in libs/
# Sep 23rd 2011, 10:48 rchavik libs/convert.php -> App::import('Lib', 'convert');
# Sep 23rd 2011, 10:48 fenix` basic utility functions, stuff like value conversion.
# Sep 23rd 2011, 10:47 dakota fenix`: what kind of functions?
# Sep 23rd 2011, 10:47 rchavik it's the lib dir (inside the app)
# Sep 23rd 2011, 10:45 fenix` anyway, im looking for the simplest way to have functions that are accessible to both controllers and views
# Sep 23rd 2011, 10:45 fenix` oh. right
# Sep 23rd 2011, 10:45 dakota vendor assets == javascript, css, image, etc.