值得学习
- 值得学习 赞了回答
/** * @var bool whether to automatically pluralize the URL names for controllers. * If true, a controller ID will appear in plural form in URLs. For example, `user` controller * will appear as `users` in URLs. * @see controller */ public $pluralize = true;
你这么写需要先设置
'pluralize'=>false;
你好,进入测试页面,输入
localhost/yii2/yii2test/frontend/web/index.php
页面显示以下内容:Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. If you think this is a server error, please contact the webmaster. Error 404 localhost Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.15
@改道梁山 token(hidden) 这里没法输入是什么情况?你那里可以输入吗?