|
Code LibrariesProjects & Resources |
Interface Model EngineThe Interface Model Engine enables separation of the HTML (user interface) and PHP class code (business model), allowing each layer to operate independently of one another.
The advantages of the IME are; effective separation of interface/business models, flexible presentation and code reusability.
Presentation HTML can be completely changed, without affecting any PHP code. HTML templates can be reused across a whole website, using a single template file. Allowing for changes to be instantly propagated throughout the entire website.
How to use the IME class
HTML template code
PHP template engine for simple variable tag replacement
The Interface Model Engine also allows for rows of data to be displayed, by splitting the repetitive parts of the template by using a user-defined HTML comment (by default this uses a string: SPLIT)
The parse_template() method allows for multiple rows of duplication within a HTML document.
The parse_template() method tags the given variables as an array of tags and parses the tags from the HTML and replaces them with the HTML for any given HTML segment.
void parse_template ( array tags [, int section )
section: an integer pointing to the HTML section that is being parsed. The first section always starts at 0.
Download
Interface Model Engine, version 2.2 (PHP 5.0 onwards) Interface Model Engine, version 1.2 (PHP 4.3) (depreciated)
Version Information1.0 IME class named stel_engine 1.2 Allows template splitting and datasets 2.1 PHP 5 compatibility added, additional class to extend IME for stel_engine naming on older applications 2.2 Updated mutliple nest problems (bug40) and added increaced type checking (bug39)
Web services using the IMEThe following services use the Interface Model Engine
OmegaSoft Traffic Monitor OmegaSoft iForum PathSearch |
© Copyright 2008
| Terms
of Use
| OmegaSoft Homepage
| Feedback