是否可以将页面映射到特定的操作 + 参数组合,如下所示:
<myprofile>
<label>My Profile</label>
<controller>user</controller>
<action>profile</action>
<visible>1</visible>
</myprofile>
<othersprofile>
<label>User Profile</label>
<controller>usuario</controller>
<action>perfil</action>
<visible>0</visible>
<reset_params>0</reset_params>
<params>
<id>*</id>
</params>
</othersprofile>
我希望如果 uri 包含任何 id param ,那么应该是活动的。(我把 * 作为通配符,但我不知道正确的方法)
/user/profile = 应将 myprofile 设置为活动 /user/profile/id/5 = 应将 othersprofile 设置为活动
任何帮助表示赞赏。
谢谢