Creating installer - Populating database

SDK Docs: http://installatron.com/developer/apps
SDK GUI Editor: http://installatron.com/editor
Sdesigns
Posts: 11
Joined: Mon Dec 03, 2012 7:32 am

Creating installer - Populating database

Postby Sdesigns » Mon Dec 03, 2012 7:37 am

Hi,

I am not so good with PHP so please bear with me :)

I am trying to make an installer. So far I have it so it extracts the files in the right place and creates a database.
The next step would be to populate the database.
So I have added the following line in public function step3_process

Code: Select all

$this->db_import("install/assets/install.sql");


yet when the installer is run the sql file is not imported into the database.

Any ideas what I may be doing wrong here?

Thanks

Phil
Staff
Posts: 486
Joined: Tue Jun 19, 2007 6:06 am

Re: Creating installer - Populating database

Postby Phil » Mon Dec 03, 2012 11:18 am

Hello,

That looks like the right approach.

Anything in /var/installatron/logs/error_log or /var/installatron/logs/filesystem_log or /var/installatron/logs/install_error_log?

Thank you,
Phil
Phillip Stier
Installatron Co-Founder


Return to “Application Packaging SDK and Application Customizations”

Who is online

Users browsing this forum: No registered users and 1 guest