123456789101112 |
- <?php
- define('MiPush_Root', dirname(__FILE__) . '/');
- function mipushAutoload($classname) {
- $parts = explode('\\', $classname);
- $path = MiPush_Root . implode('/', $parts) . '.php';
- if (file_exists($path)) {
- include($path);
- }
- }
- // message1 演示自定义的点击行为
- spl_autoload_register('mipushAutoload');
|