tags:

views:

113

answers:

5

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

+2  A: 

It was the most lightweight one I could find.

include("header.php");
Sam152
+2  A: 

Sure:

<?php require("Header.php"); ?>

  <h1>Hello World</h1>
  <p>I build sites without "smarty crap"!</p>

<?php require("Footer.php"); ?>
Jonathan Sampson
you like smarty?
Solar
Whoops, I made an edit to fix something that you fixed while I was editing it. My bad.
Sam152
Solar, I like MVC :)
Jonathan Sampson
man its hard.. i have tried to learn many times but quitted after 3 minutes,makes me sweaty ..l.. mvc
Solar
Solar, give it time :) It was difficult for me when I first started working with Object-Oriented frameworks too. Just be patient :)
Jonathan Sampson
unfortunately patience has neeever been one of my strong sides :P but maybe one day... maybe. is there an oop tutorial for dummies?
Solar
Solar, patience (like other things) is learned :) You will *learn* be more patient as you grow in knowledge and experience. Dasvadanya! :)
Jonathan Sampson
A: 

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/

Erick
A: 

Try having a look at Twig by Fabien Potencier.

phidah
A: 

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.

DeaconDesperado
http://stackoverflow.com/questions/1881571/php-mvc-fetching-the-viewThis was my original conundrum...
DeaconDesperado