Skip to main content
100%

Gist 22d2abbe02eedb8e1141

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

This example shows how to move a Yii framework searchable grid view from a dedicated admin page to the site’s index page. It demonstrates reusing the generated `Post` model’s `search()` method and the `CGridView` widget with a filter and advanced search toggle. The code copies the controller action logic and the associated view script, including the jQuery-based search-button toggle and `yiiGridView` update callback, into the new location. The data provider is built from the model’s search criteria, and the grid displays columns for id, title, content, status, and timestamps.

AI-generated description

Similar vizzes