Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2.  
  3.  
  4. class Examples extends CI_Controller {
  5.  
  6. function __construct() {
  7. parent::__construct();
  8.  
  9.  
  10. /* Standard Codeigniter Libraries */
  11. $this->load->database();
  12. $this->load->helper('url');
  13.  
  14. $this->load->library('grocery_CRUD');
  15. }
  16.  
  17. private function _example_output($output = null) {
  18. $this->load->view('example.php',$output);
  19. }
  20.  
  21. public function offices() {
  22. $output = $this->grocery_crud->render();
  23.  
  24. $this->_example_output($output);
  25.  
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement