Creating a PHP Template Engine

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,285
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 27, 2011

In this tutorial we will be creating a php template engine. Small? yes, but expandable? absolutely!

If you have any questions, requests / problems please either PM me or leave a comment.

I will start posting more vids, as now I have more time.

Thanks,
// HydroCode Design

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (HCodeEntertainment)

  • Yes you can have it call. Form. Or what you could do is have it being. Form builder. [Form] [INPUT]. There are so many different ways of doing so. If you need a tut on this just let me know.

  • how about blocks?

  • @dzMONEYy what about blocks?

  • @HCodeEntertainment

    if i want to use loops and lists...

  • @dzMONEYy

    You can implement loops and lists. It's only a matter of stripping the tags then checking what its use is (ex. Loops and stuff.) Then getting all the content from inside the tags, placing them in variables replacing the tags with the actual loop. Many ways of accomplishing this sort of thing.

  • Thanks for the tut!

  • @Josperdb Your Welcome!

see all

All Comments (12)

Sign In or Sign Up now to post a comment!
  • So... Trying to add if/else statements into my default.tpl file to render different div tags for layout based off if the page is index, 2 column or three column but maybe that's not where it goes? Any clues on how to add the if else statements to format the .tpl file layout? Thank you!

  • please.. your current one only shows how to add text as many times as you want, but not other more dynamic elements like a form or how to include more files than just index.php and defult.tpl.. I am attempting my first cms and simplicity in templateing it is key, as you can imagine the templates need more than just an index.php

  • great tut, is there a way you can use the same technique to call something like a form ?.. for example [form] could call a contact form.. thanks

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more