Welcome Guest, Not a member yet? Register   Sign In
my controller fails to find helper function
#9

(This post was last modified: Today, 01:07 AM by PaulC.)

(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()
Reply


Messages In This Thread
RE: my controller fails to find helper function - by PaulC - Today, 01:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB