我想在助手中创建新函数,但它仍然失败:
Call to undefined function
app/Helper/Text_helper.php我在使用中保存我的助手namespace App\Helpers;
并使用 BaseController 加载助手protected $helpers = ['text'];
参考: https: //codeigniter4.github.io/userguide/general/helpers.html#extending-helpers 但它仍然不起作用