Welcome Guest, Not a member yet? Register   Sign In
Load Library with static functions
#1

Hello there.
One question for my actually project.
I have a library, there is only one static public function. Must I load the library or can I only use the "use" command ? Or easier "$var = \App\Libraries\MyLib::myFunction($param)"
Thanks in advance,

Kighlander Wink
Reply
#2

What do you mean?

PHP Code:
new \Namespace\Class();
//equal
use Namespace\Class;
new Class 
Reply
#3

Finally I got it Wink

With the "use" command I solved it.
I managed it with the static method call.

$var = MyStaticClass::mystaticmehthod($param)
Reply




Theme © iAndrew 2016 - Forum software by © MyBB