private function generateCategoryRules()
	{
		$rules = array();
		$categories = Categories::model()->findAll();
		foreach ($categories as $el)
		{
			if ($el->slug == NULL)
				continue;

			$pageRule = $el->slug.'/<page:\d+>';
			$rule = $el->slug;

			$pageRule = $el->slug . '/<page:\d+>';
			$rule = $el->slug;

			$rules[$pageRule] = "categories/index/id/{$el->id}";
			$rules[$rule] = "categories/index/id/{$el->id}";
		}

		return $rules;
	}