in autoload.php
public $helpers = [
'general'
];
helper is loaded and helper file defined 2 functions
<?php
function datetimeformat($date)
{
return date("Y-m-d H:i:s", strtotime($date));
}
function randomnumber()
{
return "111";
}
and in controller i called the helper but is not working
<?php
namespace AppControllers;
/**
* Rating Controller For Admin
*/
class Rating extends BaseController
{
public function index()
{
// Load either general_helper or general
if ( helper('general_helper') || helper('general')) {
echo "test";exit();
}
}
}
in this code helper is not loaded i cant find what is the issue please any one have idea