简体   繁体   中英

phpgrid using codeigniter

I'm working on a web application using codeigniter and i want to use php grid in displaying information but i dont know how to do it with codeigniter! Is there anyone has worked with php grid using codeignitier? Help please!! I'm would have opted for flexigrid but it doesn't offer so much functionality such as exporting to various document format(excel, word, etc). Thanx in advance!

I'm not familiar with php grid, but usually you can just throw a class file in application/libraries and then load it like this:

$this->load->library('phpgrid');
// and use it like this
$this->phpgrid->phpgrid_method();

您可以使用以下代码加载php datagrid或任何第三方PHP库。

$this->load->library('phpgrid');

Another approach in CodeIgniter is to directly include third party libraries without calling load library.

require_once(APPPATH. 'libraries/phpGrid_Lite/conf.php'); 
$data['phpgrid'] = new C_DataGrid("SELECT * FROM Orders", "orderNumber", "Orders"); //$this->ci_phpgrid->example_method(3);

APPPATH is explained in this SO discussion .

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM