indexから削除するにはどうすればよいですかhttp://localhost/dashboard/index/create
私はurlManagerこのような設定をしています:
'urlManager' => array(
'urlFormat' => 'path',
'showScriptName' => false,
'rules' => array(
'<controller:\w+>/<id:\d+>' => '<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
'<controller:\w+>/<action:\w+>' => '<controller>/<action>',
),
),
そして、これは私にこのようなクリーンなURLを与えます。http://localhost/dashboardここで、dashboardは。という名前のデフォルトのコントローラーを持つモジュールですindexController。
今、私が抱えている問題は、最初にモジュールコントローラーの他のアクションにアクセスできないことです。たとえば、内部indexに電話をかけたい場合は、常にと言わなければなりません。actionCreateindexControllerhttp://localhost/dashboard/index/create
私がそれを取り除くことができて、indexそれをこのように呼ぶことができる方法はありますhttp://localhost/dashboard/createか?
これは私のモジュールがどのように構成されているかですmain.php:
'modules' => array(
...
'dashboard' => array(
'defaultController' => 'index'
),
...
),
前もって感謝します :-)