Templates with AvTemplate Helper
Site Avenger makes extensive use of the AvTemplate helper, in views, elements and templates (located in the layouts folder).
Beginning a Template
To start a template, you will use the AvTemplate->open() function. This function is based on the normal and often used parameters to make for as little setup as possible.
- echo $avtemplate->open();
There are many parameters you can pass to dictate how the title tag, meta tags and asset links are displayed. The open() function is an aggregator function that in turn calls several self-contained and independent functions. If you have a highly-custom template, you may want to use the AvTemplate functions as stand alone.
Basic Avtemplate->open() Usage
- $openOptions =
- 'css' =>
- ),
- );
- echo $avtemplate->open($openOptions);
Avtemplate->open() Options