Advertisement
tonny16

articles.php

Apr 21st, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1. <?php
  2.  
  3. class Articles extends CI_Controller
  4.  
  5. {
  6.  
  7. public function __construct()
  8.     {
  9.  
  10.         parent::__construct();
  11.  
  12.         //Chargement des ressources pour tout le controleur
  13.         $this->load->database();
  14.         $this->load->model('articles_model');
  15.  
  16.     }
  17.  
  18.     public function voir ()
  19.     {
  20.  
  21.         $data = array();
  22.         //  On charge la vue
  23.         $this->load->view('afficher_article', $data);
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement