Hey,
How should I configure the rules in config/main.php in order to have url-structure like this:
index.php/category/products/2
Right now I'm getting urls like this index.php/category/products/id/2 using CHtml::link()-method:
echo CHtml::link($model->name, $this->createUrl('index.php/category/products', array('id' => $model->id))
So how can I get rid of that last "id" parameter?
Thanks in advance.
How should I configure the rules in config/main.php in order to have url-structure like this:
index.php/category/products/2
Right now I'm getting urls like this index.php/category/products/id/2 using CHtml::link()-method:
echo CHtml::link($model->name, $this->createUrl('index.php/category/products', array('id' => $model->id))
So how can I get rid of that last "id" parameter?
Thanks in advance.