File and Directory Structure

From FusionPBX
Revision as of 07:11, 11 October 2012 by Mcrane (talk | contribs) (Future Improvements)
Jump to: navigation, search

Current proposed directory structure. Suggestions for improvements are welcome.

App Structure

Design goal for applications are self contained application that is designed to plug in a simple way. location fusionpx/app

  • root.php
  • app_config.php
  • app_defaults.php
  • app_languages.php
  • models
  • views
  • controllers
  • resources
    • classes
    • functions
    • images
    • xml
      • dialplan

Core Structure

Same as App Structure only the bare minimum applications belong in core such as menu, user managerment, groups, permissions, domains and default settings.

Future Improvements

  • includes/lib_switch.php

Move the functions this file contains into classes in their respective directories.


  • includes directory

Considering renaming this directory to resources.


  • includes classes

Move the specific classes into their respective app/resources/classes directories.


  • includes/classes/install.php

Move the rest of the install.php file into methods of the install class.