Tutorials

Tutorials on varying subjects

Creating a Simple Template Engine with PHP: Part 2

Creating a Simple Template Engine with PHP: Part 1

In the last part we covered setting up our project and getting our Engine::render() method to render our view file and interpolate the variables passed into it. Already it is more useful that using PHP on it's own to display pages. However, we want more than that. We want to eventually be able to have a new syntax for out variables, loops and conditional statements.