Plain Controller, without extending BaseController ?? |
Just want to know if it is possible to have a plain controller class without extending the base controller ?? or without initController() ?? with my own dependency injection in __constuct() ??
I'm doing a test to see if I my plain controller class can be used by other frameworks. It looks something like this: Code: <?php
Probably possible if you extend the CodeIgniter::createController() method.
See - https://github.com/kenjis/ci4-tettei-app...gniter.php - https://github.com/kenjis/ci4-tettei-app...hp#L34-L43 |
Welcome Guest, Not a member yet? Register Sign In |