View

When rendering a view using Liten’s view object, there are two parameters that can be passed to the display() method.

Layouts

You can create a layout (template) that other files (children) can extend. The show() method displays a section of content defined by the child view extending it.

Views

Create a view that extends the layout and provides content for the show() section in the layout.

Partials

A somewhat alternative to default layouts is partial views which allows you to separate templates for headers and footers.

 

Last Modified: Mar 31, 2015 @ 1:55 PM

Liten Framework Forums View

This topic contains 0 replies, has 1 voice, and was last updated by  parkerj 3 years, 7 months ago.

You must be logged in to reply to this topic.