Notice: Undefined offset: 8192 in /home/miphpf/domains/ on line 499

Notice: Undefined offset: 8192 in /home/miphpf/domains/ on line 506
User Interface | MIPHPF - Your Open Source RAD PHP Framework
Skip navigation.

User Interface

: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/miphpf/domains/ on line 291.

The user interface layer supports two kinds of views - table view and form view. Table view is used to display tabular data, and supports paging, search (filters), changeable number of records per page and sorting. All these features are implemented as plugins to the miTable class, thus additional features can be added.

A miBreadcrumb helper class is included which can subclassed to use breadcrumb functionality.

The miTemplateParser implements the parsing of the (X)HTML templates. It's very simple to use, very fast, and doesn't need any temporary storage for caching. In templates there is two types of objects - variables and sections. Most commonly variables are with uppercase names and enclosed in %% (i.e %%USERNAME%%).
Sections look like xml tags with mandatory attribute - 'name' - which links them to the section info objects in the php source. (i.e. <mi:section name="UserPayments"></mi:section>)

* Example for a simple template:
<mi:section name="rows">
        <td><a href="/public/products/products.php?CategoryID=%%CATEGORYID%%">%%CATEGORYNAME%%</a></td>