Timeline for CakePHP same method names in Model and Controller
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 1, 2012 at 16:36 | comment | added | Barry Chapman | Bear in mind, that while this is fine - if you have the same function names in a controller/component or model/behavior - it will present a problem. | |
| Aug 30, 2011 at 8:53 | vote | accept | gt10001 | ||
| Aug 27, 2011 at 2:34 | comment | added | gt10001 | Hello Juhana, thank you for your reply. Are there any naming conventions I can use in this case so that the next developer will have an easier time understanding my code. (I have a lot of comment, but still). The job both approve() methods do are the same. | |
| Aug 26, 2011 at 20:36 | answer | added | 8vius | timeline score: 2 | |
| Aug 26, 2011 at 20:34 | comment | added | JJJ | It's easy to mix up $this->Model->method() and $this->method() by mistake, but it shouldn't pose any technical problems. | |
| Aug 26, 2011 at 20:25 | history | asked | gt10001 | CC BY-SA 3.0 |