Welcome Guest, Not a member yet? Register   Sign In
Custom library available like CI3
#1

Hello,

How to initialize custom Library?
I have some class in Library, in namespace App\Libraries and get it by namespaces is pretty and works fine, but how to get/assign it to base controller. Somethink like CI3.


PHP Code:
$controller->{$library}->someMethodInLibrary(); 


And without modification in 'system' directory.


Thanks for advice.
Reply


Messages In This Thread
Custom library available like CI3 - by Przem4S - 05-23-2018, 12:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB