Yii 1.1: friendlyurl

Allow to use realy friendly URLs

Own opinion: It is too good NOT using this extension. :)


  • Development closed



Yii 1.0.3 or above


Extract the release file under 'protected/extensions'.


  1. Add to Yii::app()->import 'application.extensions.FriendlyUrl.*'.
  2. Change Yii::app()->urlManager class to 'CFriendlyUrlManager'.
  3. Add 'protected/data/pages.php' with your content (example exist as 'CFriendlyUrlPagePhpStorage.dataFile.php.example').
  4. Change parent of your controllers from CContoller to CFriendlyUrlController.
  5. Add call widget FriendlyUrlMenu for build menus.
  6. Adapt calls of createUrl.

Change Log

April 13, 2009

  • Changed principle of work from catchAll-controller to adapt CUrlManager.
  • Added PHPDoc comments and build the class manual.

April 3, 2009

  • Fixed syntax errors;
  • Fixed current page detection in FriendlyUrlMenu;
  • Added feature to specify action in cname field;
  • Added magic PHP code execution for fields title and menuTitle.

April 2, 2009

  • Initial release.

Be the first person to leave a comment

Please to leave your comment.

Create extension
  • Yii Version: 1.1
  • License: New BSD License
  • Developed by: Blake-R
  • Category: Others
  • Votes: No votes yet
  • Downloaded: 1,697 times
  • Created on: Apr 2, 2009
  • Last updated: Dec 15, 2009