(Yesterday, 08:14 PM)paulbalandan Wrote: Ok got it. In your use statements, just add this line.
use function App\Helpers\is_valid_level;
Thx for this.
Slightly dismayed at the implication though!
Do I have to list all the functions in our helpers with individual use statements?
This seems to defeat the autoloading intention, and I don't think this requirement is highlighted in the docs I have read to date?
PS I tried listing the helpers in the Autoload.php file and that didn't make any difference.
Regards, Paul
I just tried adding the use statement and still get
Call to undefined function App\Controllers\is_valid_level()