![]() |
Tip: Autoloading class files
You can autoload class files using the __autoload() function. Simply define the function with a single argument (this will be the name of the class) .
Code:
function __autoload($szClassName) |
Your code snippet will not work as-is. You assign $szFileName but then use $szFilePath in the file_exists and include_once calls.
|
ah yes lol, sorry. Wrote it from the top of my head, guess I should have checked it first. All fixed up now :)
|
| All times are GMT. The time now is 07:39 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0