Php 杂货店积垢始终不显示要显示的项目,但显示总计数
我有一个问题,我正在使用杂货CRUD,当我列出数据时,它总是显示Php 杂货店积垢始终不显示要显示的项目,但显示总计数,php,codeigniter,grocery-crud,Php,Codeigniter,Grocery Crud,我有一个问题,我正在使用杂货CRUD,当我列出数据时,它总是显示没有要显示的项目,但它显示了表中记录的总数 控制器 class manage_home extends CI_Controller { public function __construct() { parent::__construct(); $this->load->database(); $this->load->helper('url'); $this->l
没有要显示的项目
,但它显示了表中记录的总数
控制器
class manage_home extends CI_Controller {
public function __construct() {
parent::__construct();
$this->load->database();
$this->load->helper('url');
$this->load->library('grocery_CRUD');
}
public function all_intro() {
// echo "All is well";
$crud = new grocery_CRUD();
$crud->set_table('tbl_home_information');
$crud->columns('pk_information_id','information_title','information_status','information_added');
$crud->fields('pk_information_id','information_title','information_status','information_added');
$crud->display_as('pk_information_id','ID');
$crud->display_as('information_title','Title');
$crud->display_as('information_added','Date');
$crud->display_as('information_status','Status');
$output = $crud->render();
$this->_example_output($output, "Manage Brands");
}
}
我的桌子结构是
我认为您没有用于“示例”输出的函数:
function _example_output($output = null)
{
$this->load->view('"name of your view".php',$output);
}