Hi all,
I just start play Yii, I love it.
I trying to create a page /admin/user/role/create
My controllers:
- admin
-- UserController (has actionRole)
My question is how to creat role/create, do I have to create a new folder and put RoleController in new folder? Is there a other way to do it.
Thanks.
Page 1 of 1
Controller problem
#2
Posted 09 March 2010 - 11:51 AM
Daniel Zhu, on 09 March 2010 - 10:52 AM, said:
Hi all,
I just start play Yii, I love it.
I trying to create a page /admin/user/role/create
My controllers:
- admin
-- UserController (has actionRole)
My question is how to creat role/create, do I have to create a new folder and put RoleController in new folder? Is there a other way to do it.
Thanks.
I just start play Yii, I love it.
I trying to create a page /admin/user/role/create
My controllers:
- admin
-- UserController (has actionRole)
My question is how to creat role/create, do I have to create a new folder and put RoleController in new folder? Is there a other way to do it.
Thanks.
I am not sure if you are approaching this correctly. You may have /module/controller/action/get1/get2...etc or /controller/action/get1/get2...etc
get1 and get2 are $_GET parameters
Let me know what exactly you are trying to achieve. But I am pretty sure you cannot list two controllers in your url.
Share this topic:
Page 1 of 1

Help













