标签:
// 1. Home module: Common Conf Controller index.html Modle View
// 2. The code is Controller/IndexController.class.php
// 3. 入口文件,index.php
define(‘APP_DEBUG‘,true);
define(‘BIND_MODULE‘,‘User‘); // I create it.
define(‘CONF_EXT‘,‘.yaml‘); // I create it.
define(‘APP_PATH‘,‘./Application/‘);
require ‘./ThinkPHP/ThinkPHP.php‘;
// 4. thinkphp directory
Application >> Common >> Home >> Public >> Runtime >> ThinkPHP >> Composer.json >> index.php >> README.md >> #index.php#
// 5. Application directory
Common >> Home >> Runtime >> User >> index.html >> README.md
Home directory
Common >> Config >> Controller >> Model >> View >> index.html
// 6. ThinkPHP directory
Common >> Conf >> Lang >> Library >> Mode >> Tpl >> LICENSE.txt >> logo.png >> ThinkPHP.php
// 5. 怎么让emacs不生成 #index.php# 文件
<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller{
public function index(){
// $config = C(‘‘);
// dump($config); 输出$config的结果
echo "index<br>";
}
public function _before_index(){
echo "index.before<br>";
}
public function _after_index(){
echo "index.after<br>";
}
// public function list(){
// echo "list";
// }
}
标签:
原文地址:http://www.cnblogs.com/htmlphp/p/4850783.html