Logs for

Page 336 of 211,266, showing 20 records out of 4,225,320 total, starting on record 6,701, ending on 6,720

# At Username Text
# Aug 9th 2008, 04:26 kalileo ichsan: which is what I would prefer becasue i can use one piece of code for whatever medicine
# Aug 9th 2008, 04:29 ichsan kalileo: But calling method on an instance is simpler than on a class. Medicine::get_stock_of(4) vs medicine->get_stock();
# Aug 9th 2008, 04:30 ichsan I don't need to remember the id all the times
# Aug 9th 2008, 04:30 ichsan because, I've already working on an instance.
# Aug 9th 2008, 04:30 ichsan We are on xobile medicine.
# Aug 9th 2008, 04:30 kalileo you wouldn't have Medicine::get_stock(4) in cake
# Aug 9th 2008, 04:31 ichsan kalileo: I know.
# Aug 9th 2008, 04:31 kalileo ichsan: it is an instance already, and you access it using $this->Medicine
# Aug 9th 2008, 04:32 kalileo there are class methods used in cake too, such as App::import
# Aug 9th 2008, 04:32 kalileo but not in this case
# Aug 9th 2008, 04:33 ichsan kalileo: I know $this->Medicine is actually an instance. But it is in PHP not as programming concept
# Aug 9th 2008, 04:33 ichsan it resembles class of Medicine
# Aug 9th 2008, 04:34 kalileo if you wanna write code specific for just one medicine, you could always create a Xobile Model, and have that extend the medicine model
# Aug 9th 2008, 04:34 ichsan that's how CakePHP handles concept of Class
# Aug 9th 2008, 04:35 ichsan No no no, you don't get what I mean
# Aug 9th 2008, 04:35 kalileo ichsan: yeah, lol, I think I still don't know hwat you're after
# Aug 9th 2008, 04:36 ddeerrrick I bet this gets asked a lot, but I'm having a bit of a time trying to get cake functioning as my document root on my mediatemple gs server. I've tried to find a solution online but nothing has worked yet. If anyone has some insight it'd be appreciated
# Aug 9th 2008, 04:37 ichsan Is there any specific technique in CakePHP in handling Class method and an instance of a Class method? Like here in basic PHP
# Aug 9th 2008, 04:38 ichsan $xobile = Medicine->find_by_id(4);
# Aug 9th 2008, 04:38 ichsan $xobile->get_current_stock();