Feature Request #1556
Missing controller firstly route to $routes['_default']
| Status: | Closed | Start date: | 04/26/2009 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 0% |
||
| Category: | Core | |||
| Target version: | 2.4 | |||
| Resolution: | wontfix | Points: |
Description
Missing controller firstly route to $routes['_default'], then execute show_404 method. If the show_404 doesn't exist, Controller.__call() will execute.
Event::run('system.404') is the last when there's exactly not any controller to run.
History
Updated by Jeremy Bush about 4 years ago
- Category set to Core
- Target version set to 2.4
Updated by Chris Bandy almost 4 years ago
This appears to be a feature request from the forums1 for a convention to handle missing routes/methods without hooks. The suggested implementation calls the show_404 method of the controller in the default route.
The gist of original discussion revolved around the perceived complexity of enabling a 404 hook versus the perceived simplicity of an optionally configured '_404' route.
Concerns regarding hook performance were also raised.
Updated by Jeremy Bush almost 4 years ago
- Tracker changed from Patch to Feature Request
- 11 set to 2.3.4
Updated by Jeremy Bush almost 4 years ago
- Status changed from New to Review
Updated by Ben Rogers almost 4 years ago
i dont see the point in this, everything can easily be accomplished by using that event hook. Kohana is meant to be an Event driven framework, and using a hook and attaching to an event is perfectly acceptable and recommended behavior.
I recommend we wontfix this ticket.
Updated by Ben Rogers over 3 years ago
- Status changed from Review to Closed
- Resolution set to wontfix