Login   Register  
PHP Classes
elePHPant
Icontem

File: code/includes/config.xml

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Junaid Hassan  >  PHP MVC  >  code/includes/config.xml  >  Download  
File: code/includes/config.xml
Role: Auxiliary data
Content type: text/plain
Description: config.xml
Class: PHP MVC
MVC framework that loads XML configuration files
Author: By
Last change:
Date: 2013-04-27 07:13
Size: 1,085 bytes
 

Contents

Class file image Download
<!-- Website configuration -->
<config>
    <!-- choose this controller and action if do not provided in request -->
    <default>
        <controller>home</controller>
        <action>index</action>
    </default>
    <!-- path to different folders will be set here -->
    <paths>
        <controllers>controllers</controllers>
        <models>models</models>
        <views>views</views>
        <helpers>helpers</helpers>
    </paths>
    <!-- includes and helpers needed to be loaded when website is loaded -->
    <preload>
        <includes>
            <class>url</class>
            <class>controller</class>
            <class>model</class>
            <class>utilities</class>
            <class>catalog</class>
            <class>loader</class>
            <class>database</class>
        </includes>
        <helpers />
    </preload>
    <!-- database configuration -->
    <database>
        <host>localhost</host>
        <username>root</username>
        <password></password>
        <dbname>test</dbname>
    </database>
</config>