Ticket #722 (closed Feature Request: fixed)
Replace _default/_remap to __call
| Reported by: | dlib | Owned by: | Shadowhand |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.2 |
| Component: | Core | Version: | SVN HEAD |
| Keywords: | Cc: |
Description (last modified by Shadowhand) (diff)
We can get rid of _default and _remap methods and instead implement a __call method in the Controller_Core class. This method triggers a 404 by default but you can override it in the page controllers to get _default or _remap like behaviour. It also means Kohana::instance doesn't need to do a method_exists check (or Reflection equivalent) and thus might gain a little speed. It also simplifies the Kohana::instance.
I included a patch before the Reflection change but with some changes it will also work with the Reflection class.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
