Is it possible in php to load a function, say from a external file to include in a class. I’m trying to create a loader for helper functions so that I could call:
$registry->helper->load('external_helper_function_file');
after that it should be able call the function in file like this:
$registry->helper->function();
Thanks for any help
Setting aside opinions it it’s good OOP design. It’s possible even with current version of PHP, although not as clean, as it can be with PHP5.3.