westdc-zf1/local/common.php

7 lines
241 B
PHP

<?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');