Yii generate crud and module

hello, I have generated crud and module with Gii and it seems that I can generate only veiw controller. I can’t modify or create content. when I press create it shows the same list output. so can you help me?


http://www.example.com/admin/articles/create

is the same as




http://www.example.com/admin/articles/index

that is list of articles

It may be fault of urls so here is my main.php config


'urlManager'=>array(

			'urlFormat'=>'path',

			'showScriptName'=>false,

			'rules'=>array(

				'gii'=>'gii',

				'gii/<controller:\w+>'=>'gii/<controller>',

				'gii/<controller:\w+>/<action:\w+>'=>'gii/<controller>/<action>',

				'site/page/<view:\w+>'=>'site/page',

				'<controller:\w+>/<cact:\w+>/<action:\w+>'=>'<controller>/<cact>',

				'<controller:\w+>/<id:\d+>'=>'<controller>/view',

				'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',

				'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',

				

			),

		),

The rule


'<controller:\w+>/<cact:\w+>/<action:\w+>' => '<controller>/<cact>'

matches both admin/articles/create and admin/articles/index and returns route "admin/articles" which means "default (index) action of articles controller in admin module" in this case.

What’s the purpose of <action:\w+> in that rule?

oh, thank you very much. I deleted that rule and now everything works fine. I don’t remember why I put the rule there. But now everything works like a charm. Thank you, again.