I am trying to create a URL in the path format in yii but it always creates it in the get format. I do not understand whats going wrong.
this is the main.php
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName'=>FALSE,
'rules'=>array(
'airlineSearch/roundTripSearch/<origin:\w+>'=>'airlineSearch/roundTripSearch/<origin>',
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),
and this is the controller
class AirlineSearchController extends Controller
{
public function actionRoundTripSearch($origin)
{
echo $origin;
}
public function actionLets()
{
echo $this->createUrl('roundTripSearch',array('origin'=>'delhi'));
}
}
but it always results in /services/airlineSearch/roundTripSearch?origin=delhi
Question :- How can i get it in the path format?