Question:How to enable url manager in yii? 

Answer url manager remains in yii\protected\config\main.php. We can enable after un commenting ‘urlManager’ and the codes will show like: '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>', ), ), 

+ Report
Total Preview: 973
How to enable url manager in yii?
Copyright © 2024. Powered by Intellect Software Ltd