3.1.3 Data


What is data?

Data is output as a controller or entity and can display (Example: A title from a blog post). It is also possible to work with the data (Example: This is used in If statements).

The data can be printer out in HTML with Smarty code (See Code Below).

*CODE* *SNIPPIT*{* Blog Post title *}< h4 > {$item->Title} *CODE*

 

What can I do with data?

It is also possible to print data between HTML code (As Seen Above), so you can use it for:

  • Logic - IF statements
  • Filter - Make a string UPPERCASE.