Giter Site home page Giter Site logo

emps's Introduction

EMPS Web Framework

EMPS stands for 'Engine', 'Model', 'Procedure', 'Smarty'. The earlier versions of the engine used to contain folders named 'e', 'm', 'p', and 'Smarty' to store the different component scripts of the framework. Those letters comprise the acronym 'emps'. The latest versions of EMPS do not contain those folders, but the name stuck anyway.

Smarty (http://www.smarty.net/) is a vital component of the framework, you have to store it somewhere in the include_path of your server's PHP. EMPS will expect to find Smarty 3 at: "Smarty3/libs/Smarty.class.php". Earlier versions supported Smarty 2, but this one only accepts Smarty 3.

EMPS is an MVC framework, which means that PHP code is totally separated from HTML templates by means of Smarty. Controllers and views are stored together as a *.php and a *.nn.htm file in a sub-folder of the "modules" folder. The "nn" in the view's file name means 'default language'. You can have two or more views for different languages.

The PHP controllers are regular plain PHP procedure scripts. The scripts can access all EMPS functions through the $emps object variable and all Smarty functions through the $smarty object variable.

EMPS supports multiple websites on a single set of modules (one engine - many websites) and several languages across websites or even on a single website.

The core of the EMPS framework is supposed to be loaded through "require_once" from somewhere on the "include_path". This will enable several websites on the same server to share the EMPS code (which will enable updates, bugfixing, etc.).

EMPS is Git-friendly. No data, no HTML templates, and no code vital to the website being developed is ever stored in the database, all code and templates are stored in the module folders as files.

The SQL database structure is stored in a specially-cooked SQL file that enables "sqlsync" - automatic synchronization of the actual database structure with the SQL file. Update the SQL file, call /sqlsync/ on the website, and your website's SQL (MySQL) database gets updated automatically (no manual adding of new fields in phpMyAdmin).

emps's People

Contributors

alexgnatko avatar pesochek avatar

Watchers

James Cloos avatar  avatar

Forkers

arniel

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.