我在PyroCMS中创建了一个模块,比如mymodule,并创建了前端控制器歌曲。
现在我想从
设置我的路由www.example.com/mymodule/songs到www.example.com/songs
请帮帮我。
答案 0 :(得分:1)
尚未对此进行测试,但假设您拥有网址架构www.example.com/mymodule/songs
和www.example.com/mymodule/songs/song_id
,则以下内容应该有效:
$route['songs'] = 'mymodule/songs';
$route['songs/(:any)'] = 'mymodule/songs/$1';
答案 1 :(得分:0)
根据您的版本,您可以使用路线模块。
类似于: foo /(:any)=>酒吧/巴兹强>