Guest User

Untitled

a guest
Jun 25th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.68 KB | None | 0 0
  1. <?php if (! defined('BASEPATH')) exit('No direct script access');
  2.  
  3. class Bruger extends CI_Controller {
  4.  
  5.     public function __construct()
  6.     {
  7.         parent::__construct();
  8.         $this->load->model('bruger_model');
  9.         $this->load->library('session');
  10.         $this->load->library('ion_auth');
  11.     }
  12.    
  13.     public function index()
  14.     {
  15.         $this->output->enable_profiler(TRUE);
  16.         $data['topics'] = $this->bruger_model->get_topics();
  17.         $data['title'] = 'Bruger liste';
  18.  
  19.         $this->load->view('templates/header', $data);
  20.         $this->load->view('brugere/index', $data);
  21.         $this->load->view('templates/footer');
  22.     }
  23.    
  24. }
  25.  
  26. /* End of file Class_name.php */
  27. /* Location: ./application/controllers/Class_name.php */
Add Comment
Please, Sign In to add comment