sql-table-view SqlTableView is a widget based on AutoCountGridView that displays the rows of a table efficiently.

  1. Requirements
  2. Usage
  3. Resources

SqlTableView is a widget based on AutoCountGridView that displays the rows of a table efficiently.

Requirements

auto count sql data provider extension
auto count grid view extension

Usage

function id_formatter($id)
{
	return '<div style="text-align:center;font-weight:bold">'.$id.'</div>';
}
$this->widget('application.extensions.SqlTableView', array(
	'table'=>'tbl_user',
	'criteria'=>array(
		'condition'=>'username like "%"',
	),
	'formatters'=>array(
		'id'=>'id_formatter',
	),
	'filter_get_variable'=>'grid',
	'count_get_variable'=>'c',
));

Resources

4 0
3 followers
720 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Tags: gridview
Developed by: prekageo
Created on: Jul 21, 2011
Last updated: 6 years ago

Downloads

show all

Related Extensions