Skip to content

Views handle presentation and template rendering—the last step that turns data into HTML. This chapter covers template resolution, assigning variables, tag syntax, and layouts.

What views include ​

In PhpTide, views usually cover:

  • Directory conventions and how templates are resolved.
  • Passing data from controllers to templates.
  • Tags for loops, conditions, includes, and layouts.
  • v() and fetch() rendering.

How to read this chapter ​

To scaffold pages first, read Template paths and Assigning variables. For structure and reuse, continue with include, Layouts, and Rendering (fetch).

Chapter map ​

Subsections follow basics → template syntax → layout and rendering; you can read them in order or jump by task.

PhpTide documentation