Create online installation. |
[eluser]srobet[/eluser]
Does anyone know how to create online installation like Joomla or Wordpress into project based on CI. I think installation will : 1. Edit the database.php file in config. 2. Run the query to create database structure. 3. Automatically delete the installation file.
[eluser]Colin Williams[/eluser]
Sounds good, srobet. "Edit the database.php file in config" gives me pause, but I don't know how else you'd do it. I would recommend writing this in an install.php file that has nothing to do with CI, like, it's just a standalone script. Sounds like you're heading that route anyway.
[eluser]Michael Wales[/eluser]
You'll also have to dynamically generate the base_url in config.php, possibly change the URI_REQUEST, at the minimum. For full support you'd need to offer a way to change the index.php file to support a system folder outside of webroot, the encrpytion key, the log/cache folders. It's a thought I have had multiple times... would definitely be a worthy addition to CI.
[eluser]Colin Williams[/eluser]
Good point, Michael. Quote:It’s a thought I have had multiple times… Me too. I started off on a sort of CI App prototyping GUI awhile back. Only got as far as a bunch of sketches, some pretty designs, and a tiny bit of code.
[eluser]Référencement Google[/eluser]
We have done a start of an installer script in Linkster. It's not yet complete and not working as expected for an end user, but you can check it on our SVN repository: http://www.assembla.com/spaces/linkster/...rsion_tool
[eluser]Référencement Google[/eluser]
Yes. like I told, we only have started something that is not yet finished. As you can see our installer create a htaccess file on the fly, you should be able to go in the same manner to create dynamically the database.php file. |
Welcome Guest, Not a member yet? Register Sign In |