\seekquarry\yioop\views\layoutsLayout

Base layout Class. Layouts are used to render the headers and footer of the page on which a View lives

Summary

Methods
Properties
Constants
__construct()
render()
$view
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$view

$view : object

The view that is to be drawn on this layout

Type

object

Methods

__construct()

__construct(object  $v) 

The constructor sets the view that will be drawn inside the Layout.

Parameters

object $v

the View object that uses this layout

render()

render(array  $data) 

The render method of Layout and its subclasses is responsible for drawing the header of the document, calling the renderView method of the View that lives on the layout and then drawing the footer of the document.

Parameters

array $data

an array of data set up by the controller to be be used in drawing the Layout and its View.