<?php echo CHtml::link($value->title, array(Yii::app()->createUrl('forum/thread', array('id'=>$value->thread_id)))); ?>
i got a link
forum/thread/2
in my urlManager rules 'thread/<id:\d+>' => 'forum/thread',
how to change the rule and method createUrl?
createUrl('any-value/forum/thread', array('id'=>$value->thread_id))
to get in url
forum/any-value/thread/2 or forum/php-for-newbies/thread/2
I am sorry for my english, thanks a lot
URL Manager rule should look like this:
Then in your controller you would have this: