Hello, I'm new to Grocery Crud and very excited to use it except that I cannot get it to display. When I run the page I get this error.
The website cannot display the page
Most likely causes:
- The website is under maintenance.
- The website has a programming error.
Here is my main.php code
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Main extends CI_Controller { function __construct() { parent::__construct(); /* Standard Libraries of codeigniter are required */ $this->load->database(); $this->load->helper('url'); /* ------------------ */ $this->load->library('grocery_CRUD'); } public function index() { $this->_example_output((object)array('output' => '' , 'js_files' => array() , 'css_files' => array())); } public function depunits() { $this->grocery_crud->set_table('depunits'); $output = $this->grocery_crud->render(); $this->load->view('administrator/includes/admin_header', $output); $this->_example_output($output); } function _example_output($output = null) { $this->load->view('our_template.php',$output); } } /* End of file main.php */ /* Location: ./application/controllers/main.php */
I am trying to use a pre-made database for the project I am working on.
Thanks in advance for your help.