Guest User

Untitled

a guest
Jul 20th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.85 KB | None | 0 0
  1. --------models/eazyteldb.php---------------------------------------------------------------------------
  2.  
  3. class Eazyteldb CI_Model {
  4.     function __construct()
  5.     {
  6.         parent::__construct();
  7.     }
  8.  
  9. }
  10.  
  11.  
  12.  
  13.  
  14. ---------controllers/home.PHP---------------------------------------------------------------------------
  15. <?php
  16. class Home extends CI_Controller {
  17.  
  18.     function index()
  19.     {  
  20.    
  21.  
  22.        
  23.         $config['hostname'] = "localhost";
  24.         $config['username'] = "root";
  25.         $config['password'] = "1234";
  26.         $config['database'] = "customersbackup";
  27.         $config['dbdriver'] = "mysql";
  28.         $config['dbprefix'] = "";
  29.         $config['pconnect'] = FALSE;
  30.         $config['db_debug'] = TRUE;                
  31.        
  32.                 $this->load->model('Eazyteldb','',$config);    
  33.                                      
  34.                                      
  35.            
  36.                                      
  37.                                      
  38.         $this->load->helper('url');
  39.         $this->load->view('home');
  40.     }
  41. }
  42. ?>
Add Comment
Please, Sign In to add comment