tp 5ルーティングバインドフロントエンドアクセスパスの簡略化
852 ワード
route.php
return [
'__pattern__' => [
'name' => '\w+',
],
'[hello]' => [
':id' => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
':name' => ['index/hello', ['method' => 'post']],
],
'product'=>'index/index/product',
'about'=>'index/index/about',
'news'=>'index/index/news',
'trade'=>'index/index/trade',
'recruit'=>'index/index/recruit',
'learn'=>'index/index/learn',
'communication'=>'index/index/communication',
'contact'=>'index/index/contact',
];