URL manager in replacement of CUrlManager with support of beauty URLs.
It generate and parse URLs in that maner:
Yii::app()->baseUrl./<path>/<action><itemSplitter><titem>.<actionSuffix>>
For use it change class name of urlManager in Yii configuration file (usually 'protected/config/main.php') to the class 'CFriendlyUrlManager'. Additionally, you cat specify next parameters:
Located in /CFriendlyUrlManager.php (line 27)
CUrlManager | --CFriendlyUrlManager
Action suffix.
Default - 'html'
Whether url may be case insensitive or not.
Default - false.
Class name for pages storage.
Now realized only two classes:
Additional parameters for initialization of storage class.
Default - empty array.
Action and item splitter character.
Default - dot.
Contains last parsed URL data:
Representative of page control class.
Create an friendly URL.
Make $lastParse read-only variable.
Initialize a class: calling CUrlManager::init() and create page control.
Find action and item, if presents.
Parse URL into a page, action and item, if that presents.
Split URL into array
Documentation generated on Mon, 13 Apr 2009 16:55:47 +0400 by phpDocumentor 1.4.1