I just learning yii framework and read this tutorial about yii how to setup url
but I have no idea, suppose i have 10 controllers, should I define one by one controllers in the config file ? is there a better way to setup url friendly like www.yoursite.com/yourController/yourAction/yourID for all controller ?
I think codeigniter did that automatically ... how about yii ?
There are automatical URL generation in Yii too. For example just write in your template such URL without manual route:
And rendered URL will be as follow:
Then in our action actionView() method we use these parameters:
In /protected/config/main.php add..
In your web root an .htaccess..