HomeDevCentral

Refactoring: new controller ErrorPageController

Description

Refactoring: new controller ErrorPageController

[ New method to show a 404 page ]

ErrorPageController::show($context, 404);

If you wish to show other HTTP code error pages, update the code to
handle this code and consider to create a new view.

[ Previous workflow ]

If an error 404 should be returned, the code defined ERROR_PAGE to 404,
then included the procedural controllers/errorpage.php file.

[ New workflow ]

If an error 404 should be returned, a call to ErrorPageController::show
is made.

Details

Provenance
derecksonAuthored on Feb 8 2014, 00:47
derecksonPushed on Oct 17 2025, 19:49
Parents
rOBSIDIAN29f471ac7e09: Refactoring: Adding a Controller::load() method
Branches
Unknown
Tags
Unknown

Event Timeline