I have a small problem with name spaces in PHP 5.3. I have announced for the namespace:
Use \ com \ me \ libs as Libs; And I can find the answer to how to include the file in that namespace using "lbs" ... I can include
Are ('com / me / libs / functions.php'); But I am trying to find "clear" way to do this ... as the object declaration:
$ foo = new Libs \ Foo .php And the second question I'm trying to return to the php file is the JSON array. To do this I must include the "Connection.php" class. But when I include this file (same folder) I get an error in the implementation file (same folder, same namespace) ...
First question: You can use an autoloader for more information.
Comments
Post a Comment