Yii Framework Forum: Controller problem - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Controller problem Rate Topic: -----

#1 User is offline   Daniel Zhu 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 18-December 09

Posted 09 March 2010 - 10:52 AM

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.
0

#2 User is offline   bettor 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 744
  • Joined: 02-February 09

Posted 09 March 2010 - 11:51 AM

View PostDaniel 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 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.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users