Page 335 of 211,266, showing 20 records out of 4,225,311 total, starting on record 6,681, ending on 6,700
# | Username | Text | |
---|---|---|---|
# | Aug 9th 2008, 04:18 | ichsan | kalileo: Mmm, I use Java too. To make it clear, it is easy for me to describe the problem in Java language |
# | Aug 9th 2008, 04:18 | skua | if you do $this->redirect('controller/action'. DS ), that doesn't work ? |
# | Aug 9th 2008, 04:18 | kalileo | ACTION hasn't touched Java for years anymore |
# | Aug 9th 2008, 04:18 | skua | i don't know how facebook add the content after url so i can't help you a lot |
# | Aug 9th 2008, 04:19 | ichsan | kalileo: in java: Medicine xobile = new Medicine('xobile'); |
# | Aug 9th 2008, 04:19 | Theaxiom | skua thanks :) |
# | Aug 9th 2008, 04:19 | ichsan | xobile.save(); |
# | Aug 9th 2008, 04:19 | ichsan | sorry |
# | Aug 9th 2008, 04:19 | ichsan | xobile.getCurrentStock(); |
# | Aug 9th 2008, 04:20 | ichsan | that's instance method. But Medicine.findAllOutOfStock() is a class method. |
# | Aug 9th 2008, 04:20 | ichsan | Is there any similiar technique to do this in CakePHP |
# | Aug 9th 2008, 04:20 | ichsan | ? |
# | Aug 9th 2008, 04:21 | kalileo | ichsan: yeah, remember. you could do all which php class support allows, but why would you want to? |
# | Aug 9th 2008, 04:24 | ichsan | kalileo: As, I just don't like static method too much. So, may be I can find instance method to handle this medicine problem |
# | Aug 9th 2008, 04:24 | kalileo | ichsan: if you need specific subclasses for different kinds of medicine, then you can always extend the medicine call |
# | Aug 9th 2008, 04:24 | ichsan | kalileo: My medicine has many behaviours |
# | Aug 9th 2008, 04:24 | kalileo | ichsan: what's static with $this->Medicine->method? |
# | Aug 9th 2008, 04:25 | ichsan | kalileo: That is static in my opinion. Because I have to supply xobile's id to get current_stock |
# | Aug 9th 2008, 04:26 | ichsan | $this->Medicine->current_stock(4); |
# | Aug 9th 2008, 04:26 | kalileo | ichsan: yes, correct |