通过controller文件夹下的XXXXcontroller.php中action ID进行查找。
如:
webroot\social\protected\controllers下Sitecontroller.php中有function actionMap()
那么对应的URL为localhost/social/index.php?r=site/map
本文介绍了如何通过Controller文件夹下的特定文件实现URL映射。例如,在webrootsocialprotectedcontrollers目录下的Sitecontroller.php文件中,通过functionactionMap()函数设置对应的URL为localhost/social/index.php?r=site/map。
通过controller文件夹下的XXXXcontroller.php中action ID进行查找。
如:
webroot\social\protected\controllers下Sitecontroller.php中有function actionMap()
那么对应的URL为localhost/social/index.php?r=site/map
2万+

被折叠的 条评论
为什么被折叠?