MvcLite\Controller::init
Hook run immediately after the constructing of a controller.
Signature
public function init()
Returns
- Controller
- Returns $this, for object-chaining.
Test Coverage
Information
- Coverage: 11/11 Lines (100%)
- Tests: 3
- Passed: 3 (100%)
Tests
- [ PASSED ] — MvcLite\ControllerTest::testInit
- [ PASSED ] — MvcLite\DispatcherTest::testDispatch with data set "good controller request"
- [ PASSED ] — MvcLite\DispatcherTest::testDispatch with data set "bad controller request"