SEF

Hi guys,

to make my items searchable i build a simple search form. But when i hit enter my action will put ?q=test behind my url.

i want to change this to http://domain.nl/daytrip/list/q/test.html

all my url are SEF but not when i use the search form, is there a solution inside Yii?

Thank you!




<form method="get" action="/daytrip/list.html?q=test"><fieldset>

    <legend>Search</legend>

    <ol>

        <li>

            <input type="text" id="q" name="q" value=""/>

        </li>

    </ol>

</fieldset>

</form>



Use the path-format of CUrlManager together with a fake URL suffix. For a good explanation see http://www.yiiframework.com/doc/guide/topics.url