Welcome Guest, Not a member yet? Register   Sign In
Extending BaseController gives error
#3

(This post was last modified: 09-28-2019, 12:16 PM by InsiteFX.)

CI 4 comes with a BaseController that is what you would use,
think of the BaseController as the MY_Controller

Add what you need add to the BaseController then extend all your other controllers
from it.

Oh, Do Not call the parent::__construct() there is no constructor in the Controller

It uses an initController() method instead.
(
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
Extending BaseController gives error - by Ambroz - 09-03-2019, 05:44 AM
RE: Extending BaseController gives error - by InsiteFX - 09-28-2019, 12:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB