Back to the module list

Output HTML

The output HTML allow to manage the views and fill the defined parameters of the view class with some information coming from the controllers. Generaly the class is not directely called, but the <route> class will do.

The class definition

Class Domframework\Outputhtml

Namespace Domframework

Description

/**
 Display in HTML the data provided, with the layout support

Properties

No property available

Methods

public function out ( $data, $title=false, $viewClass=false, $viewMethod=false, $layout=false, $replacement=array (), $variable=array (), $module="")
/**
 Data is printed by viewClass->viewmethod, in the middle of $layout
 title is put in the title of the HTML page
 $replacement modify the result (it can do title too :
 array (""=>"title to display")
 @param mixed $data Data to display on the page
 @param string|null $title Title to put on head of page
 @param string|null $viewClass Class in views to use to display
 @param string|null $viewMethod Method in the class in views
 @param string|null $layout Layout file in views
 @param array|null $replacement Replace the {key}=>value
 @param array|null $variable PHP variables send to the view and to layout
                   (can be processed by foreach, if...)
 @param string|null $module The module name to use if needed
 @return mixed Exit from PHP at the end of HTML display