Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Routes Problem

$
0
0
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.

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>