I am using a php script that's using code igniter framework
and I am getting the following error :
Unable to connect to your database server using the provided settings.
Filename: core/MY_Controller.php
Line Number: 26
My file looks like this :
<?php defined('BASEPATH') OR exit('No direct script access allowed');
/**
* Core Class all other classes extend
*/
class MY_Controller extends CI_Controller {
/**
* Common data
*/
public $user;
public $settings;
public $languages;
public $includes;
public $current_uri;
public $theme;
public $template;
public $error;
/**
* Constructor
*/
function __construct()
{
parent::__construct();
// get settings
$settings = $this->settings_model->get_settings();
$this->settings = new stdClass();
foreach ($settings as $setting)
{