PHP Classes

File: app/config.php

Recommend this page to a friend!
  Classes of Mihajlo Siljanoski  >  Xmodule  >  app/config.php  >  Download  
File: app/config.php
Role: Configuration script
Content type: text/plain
Description: Configuration script
Class: Xmodule
Modular Web application development framework
Author: By
Last change: New Version 2.7
Date: 5 years ago
Size: 808 bytes
 

Contents

Class file image Download
<?php

//Default configuration
$config['default']=array(
   
'site_name'=>'Example site name',
   
'appId'=>'myproject',
   
'version'=>'2.7',
   
//environment configuration ex('development','test','production')
   
'environment'=>'development',
   
   
   
//database configuration
   
'database'=>array(
       
'hostname'=>'localhost:3306',
       
'username'=>'root',
       
'password'=>'',
       
'database'=>'example',
       
'driver'=>'mysqli',
       
'load'=>FALSE
   
),
   
   
'storage_id'=>'mysite_storage',
   
   
//set default page
   
'page'=>'home',
   
   
//ERROR 404 page
   
'page404'=>'404',
   
   
//user roles
   
'roles'=>array(
       
'admin',
       
'user'
   
),
   
   
'theme_path'=>'themes/simple/'
   
);


//load configuration
load_configuration('default');

For more information send a message to info at phpclasses dot org.