DotKernel PSR-7 Middleware Applications

Loading files

This post refers to DotKernel 1, based on Zend Framework 1.
If you are looking for DotKernel 3 related posts, go here.

Template file locations are relative to a definable root directory. You can specify it directly in the constructor (first parameter, defaults to .).

Files are referenced via handle names. Thus you need to specify the handle name as first parameter, and the file’s name as second parameter when calling setFile().

setFile('tpl_authors', 'authors.tpl');

One Comment

  1. Dot_Template – Introductory Tutorial

    […] It separates the manipulation of data (in the database, as well as in the PHP code) […]