Welcome Guest, Not a member yet? Register   Sign In
which things are remember when hosting site for on web
#1

[eluser]mahe11[/eluser]
Hi all,
I want to knw about the Codeigniter site hosting on web: Which file/thing are always remember to update.
Plz help me. :roll:

Regards,
Mahesh
#2

[eluser]SPeed_FANat1c[/eluser]
.htaccces file
base_url in config file
make folder rights 777 where are file writing
database configuration (login, password...)

Don't know more at the moment at least.
#3

[eluser]InsiteFX[/eluser]
Change index.php to point to your system and application folders!

InsiteFX
#4

[eluser]mahe11[/eluser]
Thanks to all.
It work properly but database not loaded.
I change system/application/config/database.php


$active_group = "default";
$active_record = TRUE;
$db['default']['hostname'] = "myhost";
$db['default']['username'] = "dbusername";
$db['default']['password'] = "dbpassword";
$db['default']['database'] = "dbname";
$db['default']['dbdriver'] = "mysql";
$db['default']['dbprefix'] = "";
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";


is it correct or some other changes also do.
#5

[eluser]markup2go[/eluser]
Check out the user guide.

Make sure you load the database library. I usually autoload it, you can put it in your application/config/autoload.php file. Or you can manually load it as needed by running

Code:
$this->load->database();

You still need to load the model for the db table wherever you are needing to work it:
Code:
$this->load->model('table_name');
$data['something'] = $this->table_name->run_some_model_function();
$this->load->view('someview',$data);
#6

[eluser]InsiteFX[/eluser]
Check with your hosting provider for your database host name.

Like mine is still localhost!

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB