How to extend the Controller core class |
Thanks for the reply. It seems my question is only slightly related to this thread, but hopefully relevant enough to continue. So what I really would like to see is a simple example of how to properly extend the BaseController of CI4 with a child class that implements a constructor. Doesn't that child class constructor method need to call the initController method of BaseController? The CI4 documentation addresses extending the BaseController, but the child class does not have a __construct() function.
Extending the Controller Is this a proper example? Code: class SomeController extends BaseController |
Messages In This Thread |
How to extend the Controller core class - by Edel - 07-22-2017, 03:35 PM
RE: How to extend the Controller core class - by John_Betong - 07-22-2017, 03:49 PM
RE: How to extend the Controller core class - by kilishan - 07-22-2017, 07:46 PM
RE: How to extend the Controller core class - by never2ice - 04-03-2020, 08:40 AM
RE: How to extend the Controller core class - by InsiteFX - 07-23-2017, 04:18 AM
RE: How to extend the Controller core class - by Edel - 07-23-2017, 11:10 AM
RE: How to extend the Controller core class - by twpmarketing - 07-23-2017, 06:42 PM
RE: How to extend the Controller core class - by kilishan - 04-03-2020, 11:19 AM
RE: How to extend the Controller core class - by never2ice - 04-03-2020, 12:14 PM
|