//Autoload config
$alias = [
'Html' => \CodeIgniter\Helpers\Html::class,
'Arr' => \CodeIgniter\Helpers\Array::class,
];
// Html class
class Html
{
public static function anchor()
{
return '....';
}
public static function link()
{
return '....';
}
}
// using
Html::anchor();
// extends
$alias = [
'Html' => \App\Helpers\Html::class,
];
// Html class
class Html extends \CodeIgniter\Helpers\Html
{
public static function anchor()
{
return '....';
}
}