How To Create A View

The look or layout of pages is usually unique to each and every template. That's when separating HTML from the PHP logic becomes handy.

This is how simple it is to create a new view that can be uniquely styled within each template:

Any snippet can be retrieved by one of the following syntax, depending on when most suitable:

  • {snippet:parameter}

If a {snippet:parameter} is not defined it can be inserted later by a value from a parent view. LiteCart will clean up any remaining snippets after rendering the page.

Revisions

Top Editors
Recently Edited Articles