Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
- class Examples extends CI_Controller {
- function __construct() {
- parent::__construct();
- /* Standard Codeigniter Libraries */
- $this->load->database();
- $this->load->helper('url');
- $this->load->library('grocery_CRUD');
- }
- private function _example_output($output = null) {
- $this->load->view('example.php',$output);
- }
- public function offices() {
- $output = $this->grocery_crud->render();
- $this->_example_output($output);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement