Notice: Undefined offset: 8192 in /home/miphpf/domains/miphpf.com/public_html/includes/common.inc on line 499

Notice: Undefined offset: 8192 in /home/miphpf/domains/miphpf.com/public_html/includes/common.inc on line 506

Warning: Incorrect key file for table './miphpf_miphpfcom/watchdog.MYI'; try to repair it query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', 'preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/miphpf/domains/miphpf.com/public_html/includes/unicode.inc on line 291.', 2, '', 'http://www.miphpf.com/manual/user_interface.html', '', '3.230.143.213', 1713229663) in /home/miphpf/domains/miphpf.com/public_html/includes/database.mysql.inc on line 121
User Interface | MIPHPF - Your Open Source RAD PHP Framework
Skip navigation.
Home

User Interface

: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/miphpf/domains/miphpf.com/public_html/includes/unicode.inc 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:
<table>
<mi:section name="rows">
    <tr>
        <td><a href="/public/products/products.php?CategoryID=%%CATEGORYID%%">%%CATEGORYNAME%%</a></td>
    </tr>
</mi:section>
</table>