Welcome Guest, Not a member yet? Register   Sign In
how create an self installing project
#5

(01-19-2020, 04:14 AM)John_Betong Wrote: @pippuccio76,
> can create an entire db by visit a page ,but the answer is how can i set the db credential automatically in config->database or how can i semplify this process for user ? If i want create a csm how can user simply insert base_url and db credential without insert they in config (in config and database) ?

Check the Github link in my signature, download there zip or clone the repository and see if the installation satisfies your requirements. Please report back if you have any problems.

Why would he? It dosen't solve his problem at all...

@pippuccio76: You are using CI 3 correct? Then you need to replace that entire file with a new one using file_put_contents with settings provided during the installation.
https://www.php.net/manual/en/function.f...ntents.php

Here you can find an example code (in PHP not Codeigniter)
https://github.com/jreklund/php4dvd/blob...x.php#L169
Reply


Messages In This Thread
RE: how create an self installing project - by jreklund - 01-19-2020, 04:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB