westdc-zf1/local/common.php

7 lines
241 B
PHP
Raw Permalink Normal View History

2014-06-10 02:16:50 +00:00
<?php
spl_autoload_extensions('.php');
function my_autoload ($pClassName) {
include(dirname(__DIR__) . "/application/module/" . $pClassName . ".php");
}
spl_autoload_register("my_autoload");
date_default_timezone_set('Asia/Shanghai');