Welcome Guest, Not a member yet? Register   Sign In
Run-time parameters setting
#1

[eluser]aibanez[/eluser]
Hi everybody. I'm a newbie on CI and OOP in PHP this may be explain my following stupid question:
There is a way to modify the database parameters on run-time (parameters on database.php)?. What I need to do is to create an application that the irst time is loaded permits to user to install-it in a RDBMS of his/her preference (MySQL, Postgres, MSSQL, etc - supported by CI), define the name of the database and location (host, ip-address, etc), username and password, If database Exists then application creates the tables needed if database not exists then the application create the database and tables.

Anybody can help me with this.
Thank you in advance

Alejandro

PD. Sorry for my bad english.
#2

[eluser]OliverHR[/eluser]
Hola Alejandro,

Quote:Read: User Guide Home › Database Library › Connecting : Manually Connecting to a Database

http://ellislab.com/codeigniter/user-gui...cting.html

Saludos.
#3

[eluser]InsiteFX[/eluser]
Look here:

Users Guide Database Forge Class

InsiteFX
#4

[eluser]aibanez[/eluser]
Than you!! I swear the next time before I post anything I will "eat" the users guide first!




Theme © iAndrew 2016 - Forum software by © MyBB