<?php

	return CMap::mergeArray(
		require(dirname(__FILE__).'/main.php'),
		array(
			// uncomment the following to enable URLs in path-format
		'components'=>array(
		'urlManager'=>array(
			'showScriptName'=>true,
			'urlFormat'=>'path',
			'rules'=>array(
						   //'site/productgroup/<id:\d+>/<name:\w+>'=>'site/productgroup/<name>',
				'<controller:\w+>/<action:\w+>/<id:\d+>/<user_group_id:\d+>/<name:\w+>'=>'<controller>/<action>',
				'<controller:\w+>/<action:\w+>/<id:\d+>/<name:\w+>'=>'<controller>/<action>',
				'<controller:\w+>/<id:\d+>'=>'<controller>/view',
				'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
				'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
			),
		),
		)
		)
	);
