CodeIgniter Forums
which things are remember when hosting site for on web - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: which things are remember when hosting site for on web (/showthread.php?tid=36920)



which things are remember when hosting site for on web - El Forum - 12-20-2010

[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


which things are remember when hosting site for on web - El Forum - 12-20-2010

[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.


which things are remember when hosting site for on web - El Forum - 12-20-2010

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

InsiteFX


which things are remember when hosting site for on web - El Forum - 12-22-2010

[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.


which things are remember when hosting site for on web - El Forum - 12-23-2010

[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);



which things are remember when hosting site for on web - El Forum - 12-23-2010

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

Like mine is still localhost!

InsiteFX