是否可以从 url 中删除 id 并重命名操作名称?
例如,如果我这样写:
'production' => 'products/index',
它工作正常 - 在网址中我只能看到“生产”,并且被称为 “产品/索引”页面。
但如果我写
'audits' => '/customPages/1',
然后它给了我
系统找不到请求的操作“1”。
但据我了解,这 1 是id,它不是一个动作,它是一个动作参数。
如何获取“/customPages/1”页面,但在 url 中显示其他内容?