Login +

Views / Actions

The Actions consists of Body and Headers. Their functional organization follows the same logic as the Actions of the Controller layer.

The tree is as follows:

So we find in each part (Body & Headers), a Controller folder and all actions of the Controller in this directory.

Body

The "Body" part is mandatory, it is as its name suggests, the <body> section of HTML of the current action.

The structure of a Body is as follows:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:php="http://php.net/xsl" xmlns="http://www.w3.org/1999/xhtml">
    <xsl:template name="Index">
       
    </xsl:template>
</xsl:stylesheet>

Headers

The "Headers" is optional and allows the enrichment (Css, Js, etc.) of the <head> section of HTML of the current action.

The structure of a Header is as follows:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:php="http://php.net/xsl" xmlns="http://www.w3.org/1999/xhtml">
    <xsl:template name="HeaderIndex">
       
    </xsl:template>
</xsl:stylesheet>

Related :