How can i create search field using yii, just the way we see in the yii website on the header.
How can i create search field using yii, just the way we see in the yii website on the header.
Take a look at the gii generated code.
An input field can be created with CHtml::texfield() for example, then the input can be collected with a model.
Anyway the best advice I can give you is to study a bit the gii generated code of the views admin and _search.