Create Installer. Load Only for first time. i.e WordPress installer |
Hi,
I'm working on my new project and need to have an Installer controller to install few things first. If you wanna get some idea what I'm looking for, you can imagine the WordPress installer (for the very first time will install certain thing for you just with few clicks) . My Question is: What approach is the best practice to do like that?
Thanks for your help Ardawan
This may help you with what your trying to do:
ApPHP EasyInstaller FREE What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
It depends what you need to install. If you're just talking about a database and database config, then you first need to check the database config exists. If it doesn't exist, allow for editing it. Once you have config, then of course you will check to see if the database exists, the tables exist, the data itself exists...
(04-30-2017, 08:35 AM)ardavan Wrote: Hi, Extend the CI_Controller ( https://www.codeigniter.com/userguide3/g...asses.html ) and write a method to look for a signal in the __construct() method of your controller, if it exists redirect() to your installer controller, this signal could be looking for a database or tables, looking for a file or folder permissions, whatever your application requires. Dont forget to take into account your installer controller so your signal check doesnt trigger for that controller otherwise you'll end up in a redirect loop.
Hi Guys,
I fork and improve the UI of https://github.com/mikecrittenden/codeigniter-installer you can download mine here https://github.com/arisroyo/codeigniter-installer
There are those who tell lies with meaning behind them and those meaning less lies!
|
Welcome Guest, Not a member yet? Register Sign In |