CodeIgniter Forums

Full Version: Flexigrid setup problem - Help needed! - $config['base_url'] [SOLVED]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

I think I am facing the problem of connecting the Flexigrid example project to my database, I download this, and changes the hostname and dbname as usual.

but there is this setup, which I am not sure where to change.

Quote:Before continuing make sure you have the CI URL helper and the CI Database Library in "autoload". Also you need the $config['base_url'] in the config.php file correctly set, with ending slash. (eg. http://flexigridci/)

where is the config.php to use the $config['base_url'] and where do I set the autoLoad indifr helper and library?

All I did is extract all the sample and source, I can see the ccs design, but the database infromation does not show.

Help Please

El Forum

[eluser]maria clara[/eluser]
i also have a flexigrid right i see my config.php it looks my $config[base_url] i was configed it like this:
$config['base_url'] = "http://".$_SERVER['HTTP_HOST'];
$config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);

i don't know what's flexigrid looks and works fine with me

El Forum

Thank you so much, it solved my $config['base_url'] problem.

I am reading more about Codeigniter tutorial, until I come by this line in tutorial

http://localhost/ci_doctrine_day1 //DOES NOT WORK

After adding index.php at the end,
http://atrix-pc/test/ci_doctrine_day1/index.php //IT WORKS and see the welcome screen.