Welcome Guest, Not a member yet? Register   Sign In
Ci4 Base controller vs Controller
#3

(This post was last modified: 10-16-2021, 07:28 PM by kenjis.)

Your BaseController should be:
PHP Code:
<?php
...

class 
BaseController extends Controller
{
    ...

    /**
    * An array of helpers to be loaded automatically upon
    * class instantiation. These helpers will be available
    * to all other controllers that extend BaseController.
    *
    * @var array
    */
    protected $helpers = ['form'];

    ....


And your controllers must extend BaseController.
Reply


Messages In This Thread
RE: Ci4 Base controller vs Controller - by kenjis - 10-16-2021, 07:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB