打狗棍电视剧68全集,啊衰动漫,王坤和蔡慧近况
1、Web 服务器配置
Rewrite
2、环境需求
3、目录结构
+ app
| - bootstrap.php
| - config.php
| + Index
| + _App
| + Controller
| - _Controller.php
| - Index.php
| + Model
| + View
| + _Controller
| - _NotFound.php
| - index.mobi..php
| - index.php
| + _helper
| - footer.php
| + _layout
| - default.mobi..php
| - default.php
| + Index
+ web
| - .htaccess
| - index.php
4、入口文件
web/index.php
require_once __DIR__ . '/../app/bootstrap.php'; new \Astrology\Start();
5、引导文件
app/bootstrap.php
define('APP_ROOT', realpath(__DIR__)); define('ANFORA_AUTOLOAD', 0); if (ANFORA_AUTOLOAD) { require APP_ROOT . '/../src/autoload.php'; } else { require APP_ROOT . '/../vendor/autoload.php'; } include_once 'function.php';
6、自动加载类
src/autoload.php
require_once __DIR__ . '/Anfora/Autoload.php'; return Anfora_Autoload::getLoader();
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
PHP date_default_timezone_set()设置时区操作实例分析
网友评论