plain controller
php think make:controller dirc/Class --plain
若不帶dirc則在根目錄下創建控制器
defalut爲創建資源控制器
進行參數傳遞
url:/mod/controller/action
例如:定義路由Route::get(‘example/:name’,/index/index/example)
爲調用index模塊的index控制器並傳遞一個名爲name的變量
相應方法爲function example($name) {}
resource controller
創建控制器
php think make:controller