Welcome Guest, Not a member yet? Register   Sign In
Return autoload.
#4

@ramstudio $x = new \App\Libraries\MyLib; is funny.
I think $this->load('foo'); is dorky.

type in a "use "\App\Libraries\MyLib;" statement and you can use "$x = new MyLib();"
This is the modern way of doing things in PHP.
Simpler is always better
Reply


Messages In This Thread
Return autoload. - by ramstudio - 01-07-2019, 09:04 AM
RE: Return autoload. - by kierownik - 01-07-2019, 09:39 AM
RE: Return autoload. - by ciadmin - 01-07-2019, 10:25 AM
RE: Return autoload. - by donpwinston - 01-07-2019, 10:57 AM
RE: Return autoload. - by ramstudio - 01-08-2019, 07:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB