1 routes.php中添加路由 注意!
~~~
Route::group(['prefix' => '/', 'namespace' => 'Web', 'middleware' => 'auth'], function () {
Route::controllers([
'test' => 'TestController', //必須放在 ' / ' 路由的上面!
// 必須放在最下邊,其它控制器往上添加
'/' => 'CommonController',
]);
});
~~~
2 . php 中文截取字符串方法:
~~~
mb_substr( string, start, length, "utf-8");
~~~
3 . 文本域問題
~~~
<textarea>開始標簽與閉合標簽之間不能有空格或換行,否則出現空格</textarea>
~~~