Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if( !function_exists("load_class") )
- {
- function load_class($class_name){
- $path_class = __DIR__ . '/' . $class_name. '.class.php';
- if (!class_exists($class_name) && file_exists($path_class)) {
- require_once($path_class);
- }
- $class = new $class_name;
- return $class;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment