how to get url in yii?

Actually i have a url:

The name "test" consider as id in yii. so that i declare the following line in my config/main.php


Now i need the name of test and then i redirect the page which is in "site/test/test1/testing.php".

I tried in my sitecontroller,

        if (isset($_GET['id']))


        	 $ptype = $_GET['id'];

        	switch ($ptype) {

 			case 'test':






But its not working. its only redirect to my index page.

I don’t know how is get the name of “test”, which is in my url?

Anyone plz?