(September 20, 2011 at 2:54 pm)Darwinian Wrote: Explain yourself young manIf you want a simple example, do the following:
In the .php file, create a variable with some message:
PHP Code:
$test = "Hello, Darwinian!";
In the corresponding template (i.e. the one you call at the end of the .php file), add this where you want the message to appear:
Code:
{$test}
Save, and reload the page.
It's basically a way of creating variables within PHP and then having them display without having to use echo or print methods. It means you can leave all the layout stuff to the template, and all the processing to the PHP.