07.
Namespaces and Core PHP Classes
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
Whoops, an error! Please, try again later.
5 Comments
Loving the course so far, but could we just add a 'use \PDO;' to the top of the file instead of prefixing each instance of PDO with a leading '\'? That way if we ever wanted to override the PDO class we would only have to update the use statement instead of find and replace all references to PDO throughout the container service?
never mind, just completed the challenges :-)
Haha, awesome! :p
Received error: Uncaught Error: Class 'Service\Container' not found in PATH_TO_COUSE_CODE\index.php:8
If running on Windows, please note that spl_autoload_register function needs path encoded using constant DIRECTORY_SEPARATOR to enable php to find the correct paths.
Keep the great instructions comming!
Hey CISVHenriksen
Nice found! Thanks for sharing it, I bet more than one will find it useful :)
Cheers!
"Houston: no signs of life"
Start the conversation!