RobotLoader can't find a function
- Ondřej Kubíček
- Member | 494
it classic php autoloader, functions cannot be loaded, you have to add the file in which the function is, is loaded?
- netteman
- Member | 129
Throws exception:
- Call to undefined function x(), did you mean _()?
The exception is thrown even when I use a longer name of the function
- Call to undefined function getx()
(I tried deleting the cache)
It's not really a problem for me. I was playing around with Nette and I found this “RobotLoader finds classes, not functions” behavior and wanted to ask if it's normal or if I'm missing something :)
- CZechBoY
- Member | 3608
I see, autoload is not triggered for functions.
You should use require_once directive on your own.
https://stackoverflow.com/…or-functions
Last edited by CZechBoY (2019-03-22 22:17)