Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/270.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 杂货店积垢始终不显示要显示的项目,但显示总计数_Php_Codeigniter_Grocery Crud - Fatal编程技术网

Php 杂货店积垢始终不显示要显示的项目,但显示总计数

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

我有一个问题,我正在使用杂货CRUD,当我列出数据时,它总是显示
没有要显示的项目
,但它显示了表中记录的总数

控制器

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);    
}