How can I change the dafult controller?

I have a blog module in my app and I want to change the default controller to be my Post controller, how can I do this because atm I was unable and only solution was to change the Post controller name to Default controller. Thx

Set the defaultController property to "post" in your web application config file.

If I am not wrong, you might be looking for such thing:

In config.php file add the below codes


		// uncomment the following to enable the Gii tool

		// your module name