Closed DaFa66 closed 1 year ago
Changed protected ?string $module_name; to protected ?string $module_name = '';
protected ?string $module_name;
protected ?string $module_name = '';
Which fixes an error when parent::__construct(); not included in __construct() of a sub module with a normal $this->view()
parent::__construct();
__construct()
$this->view()
Error message > Uncaught Error: Typed property Trongate::$module_name must not be accessed before initialization
Uncaught Error: Typed property Trongate::$module_name must not be accessed before initialization
Also added links to the Trongate docs for view() and template() methods
Changed
protected ?string $module_name;
toprotected ?string $module_name = '';
Which fixes an error when
parent::__construct();
not included in__construct()
of a sub module with a normal$this->view()
Error message >
Uncaught Error: Typed property Trongate::$module_name must not be accessed before initialization
Also added links to the Trongate docs for view() and template() methods