Controllers actions with - sign

Hi dears,

I want to create actions with - sign in them as


Is it possible?


Since class name can’t contain “-” sign, you can’t create such actions. But you can define corresponding rules for url manager or maybe go further and extend the existing one.

What’s wrong with account/create ? :)

That is account controller with action create.

That’s what users are used to, and it fits with Yii conventions (for the same reason).


Thanks for response.

There is no problem in it but I have other controllers as


where user is the controller and UserContents is the action

What if there is user-contents?

Is it possible?

I know that UserContents is not a bad one.


Also Is there any way to have - in controllers i.e. Products-list