Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --------models/eazyteldb.php---------------------------------------------------------------------------
- class Eazyteldb CI_Model {
- function __construct()
- {
- parent::__construct();
- }
- }
- ---------controllers/home.PHP---------------------------------------------------------------------------
- <?php
- class Home extends CI_Controller {
- function index()
- {
- $config['hostname'] = "localhost";
- $config['username'] = "root";
- $config['password'] = "1234";
- $config['database'] = "customersbackup";
- $config['dbdriver'] = "mysql";
- $config['dbprefix'] = "";
- $config['pconnect'] = FALSE;
- $config['db_debug'] = TRUE;
- $this->load->model('Eazyteldb','',$config);
- $this->load->helper('url');
- $this->load->view('home');
- }
- }
- ?>
Add Comment
Please, Sign In to add comment