Is there any free, lightweight, template systems made pure with php ( no smarty crap )?
Then tell me please :D
thanks
and DONT recommend me too look into mvc's
Is there any free, lightweight, template systems made pure with php ( no smarty crap )?
Then tell me please :D
thanks
and DONT recommend me too look into mvc's
It was the most lightweight one I could find.
include("header.php");
Sure:
<?php require("Header.php"); ?>
<h1>Hello World</h1>
<p>I build sites without "smarty crap"!</p>
<?php require("Footer.php"); ?>
PHP Savant, basically inline PHP code : http://phpsavant.com/
or if you really want to use the {template.syntax} you might look at TinyButStrong : http://tinybutstrong.com/
http://www.phpaddiction.com/tags/axial/url-routing-with-php-part-one/
Far and away the best tutorial I've found. I utilized this lesson to switch my small run projects over to OOP and abandon Procedural.
A big caveat here and something SO made me realize - if you need a serious MVC, it's always better to go with tested, stable ones like CodeIgniter. I basically used this tut to build a skeleton of MVC to hang my pure PHP off of (I didn't want to relearn all the framework commands, and I have many classes I've made that I wanted to include and continue to use.)
This tut helped miles.