Skip to main content
100%

Gist 3a01365101835495c90f

✓ Published0🌍 Public
Aallyraza
Last edited Jul 21, 2014
Created on Jul 21, 2014

This example shows a Yii-based search interface for a blog post model, where users filter records by ID, title, or body text through a generated form. The search action initializes a Post model in search mode and passes submitted attributes to a CGridView widget, which renders results with sortable columns and action buttons. The code uses the Yii framework’s CActiveForm, CHtml, and CGridView APIs, along with the model’s search() method to supply the data provider. It demonstrates a standard CRUD-style search workflow without external visualization libraries.

AI-generated description

Similar vizzes