Basics

Directory Structure

This is the default Simplify directory structure.

/app
Your application’s base path. Should preferably be below web root.

/app/index.php
Default application entry point.

/app/config.php
Default application config file.

/app/components
/app/helpers
/app/models

Your application’s components/helpers/models.

/app/home
Your application’s home path. This folder contains your application’s controllers and views.

/app/home/home_controller.php
Default home controller.

/app/home/home_index_view.php
Default home index action view.

/app/home/404_view.php
Default 404 Page Not Found action view.

/app/home/layouts
Contains layout templates.

/app/home/layouts/default.php
Default layout.

/
/css
/javascript
/images
/files

Your application web root. Contains all files publicly available (css, images, files).

/simplify
/simplify/kernel

Framework files.

/simplify/lib
Third party libraries and non-class framework files.

/simplify/helpers
/simplify/components

Bundled helpers/components.

Path/URL

All of these  can be defined by you. If not, Simplify will try to detect them.

Use Config::getInstance()-get(<name>).

  • app_dir – Your applications path.
  • sy_dir – Simplify’s path.
  • base_url – Your server’s base url.
  • app_url – Your application’s base url.

Notes:

  • All paths and urls SHOULD be absolute.
  • Path’s SHOULD NOT have trailling slashes.
  • Simplify uses / (forward slash) as default directory separator for all operating systems.
    Advertisements

    Leave a Reply

    Fill in your details below or click an icon to log in:

    WordPress.com Logo

    You are commenting using your WordPress.com account. Log Out / Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out / Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out / Change )

    Google+ photo

    You are commenting using your Google+ account. Log Out / Change )

    Connecting to %s

    %d bloggers like this: