Installation - adampatterson/Dingo-Framework GitHub Wiki

Step 1 - index.php

The first step is to upload index.php, the application folder, and the system folder to your web server.

Step 2 - Basic Config

Open up application/config/development/config.php. It should look something like this:

// Application's Base URL
define('BASE_URL','http://localhost/dingo/0-7-0/');

// Does Application Use Mod_Rewrite URLs?
define('MOD_REWRITE',FALSE);

// Turn Debugging On?
define('DEBUG',TRUE);

// Turn Error Logging On?
define('ERROR_LOGGING',FALSE);

// Error Log File Location
define('ERROR_LOG_FILE','log.txt');


/**
 * Your Application's Default Timezone
 * Syntax for your local timezone can be found at
 * http://www.php.net/timezones
 */
date_default_timezone_set('America/New_York');


/* Auto Load Libraries */
config::set('autoload_library',array('url'));

/* Auto Load Helpers */
config::set('autoload_helper',array());`

Set BASE_URL to where you uploaded Dingo. For example, if you uploaded Dingo to http://www.evanbyrne.com/myapp then you would set BASE_URL to http://www.evanbyrne.com/myapp/. Make sure the URL has a trailing slash on the end.

If you are using Fancy URLs in your application then set MOD_REWRITE to TRUE. Otherwise, just leave this setting alone.

autoload_libraries is an array of libraries that Dingo should load for every page. For instance, if you are going to be using a lot of databasing in your application then it would probably be a good idea to autoload the db library for every page.

autoload_helpers is an array of helpers that Dingo should load for every page. For now you should just leave this alone.

Step 3 - Database

If you are going to be using a database in your application, you will need to open up application/config/db.php and change the driver, host, username, and password information in the db array. For more info on this see Database Configuration.