Created
May 7, 2014 19:24
-
-
Save vanbungkring/4aa7fc8af350d1a50a41 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return CMap::mergeArray( | |
require(dirname(__FILE__).'/main.php'), | |
array( | |
// Put front-end settings there | |
// (for example, url rules). | |
'components'=>array( | |
'user'=>array( | |
'class'=>'CWebUser', | |
'stateKeyPrefix'=>'front', | |
), | |
'urlManager'=>array( | |
'urlFormat'=>'path', | |
'rules'=>array( | |
'<view:(bandung|bekasi|bogor|jakarta|tangerang|about|advertiser|media-owner|denpasar|pembatalan)>' => 'site/page', | |
'dashboard'=>'user/Dashboard', | |
'register'=>'site/registrasi', | |
'search'=>'site/result', | |
'custom'=>'site/custom', | |
'login'=>'site/login', | |
'detail/<id:\w+>'=>'site/detail', | |
'<controller:\w+>/<id:\d+>'=>'<controller>/view', | |
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>', | |
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>', | |
), | |
), | |
), | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment