CI3.1默认控制器不支持

$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
$route['default_controller'] = 'upload/index';

/*控制器命名
A

api_A.php
A.php

*/
$route['api_([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-|/]+)'] = '$1/api_$1/$2';
$route['([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-|/]+)'] = '$1/$1/$2';

clipboard.png

阅读 400
评论
    撰写回答

    登录后参与交流、获取后续更新提醒