User Interface: the views
The views are separated into XHTML template using the PHP template syntax (using the short tags). The template files contain only limited PHP instructions:
<?=get_data("myVariable")?>’’ to display the content of a variable
<?=__("A string")?>’’ to display the content of a translated string
<?if($test == 1):?> … <?endif?>’’ a conditional instruction
<?foreach($array as $key =>’’ an iterative instruction
- helpers function are also available. For example, the ‘’_url’’ function is used to format the hyper links URL
The communication between the template and the controller is made //via// the ‘’Module::setData’‘ method to bind a variable to the view (used inside an action) and the ’‘get_data’’ helper function to retrieve the content from the bound variable.
- Tabs, accordions, modal popups by jQuery UI
- Trees with jsTree
- Datagrid with jqGrid
- Wysiwig editor jWYSIWYG
- Ajax uploader uploadify
So, we implemented and extended this library to create components easy to use.
We also gave priority to AJAX based navigation, using either HTML to render parts of the page or JSON to retrieve data from the server.
We use the JQuery UI css selector for the common style and container themes and the usual CSS2 sheet for the layout.