tpl files with Php

How to Map tpl files with php

Page 1 of 1

1 Replies - 2236 Views - Last Post: 01 March 2010 - 03:37 AM Rate Topic: -----

#1 santhiveerapandi  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 21-November 09

tpl files with Php

Posted 27 February 2010 - 12:57 AM

I want to know how to start .tpl files in php project and how its work....
if tpl is Template file then how to integrate with php {php}{/php}
what is the difference between <?php ?> and {php} {/php}
Is This A Good Question/Topic? 0
  • +

Replies To: tpl files with Php

#2 Auzzie  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 43
  • View blog
  • Posts: 573
  • Joined: 20-January 09

Re: tpl files with Php

Posted 01 March 2010 - 03:37 AM

to use a tpl file all you would need to do is include it as you would include a php file... as for the differences between {php} and <?php well that is down to how you parse your tpl file... most people use regex to do temporarily change {php} to <?php before the file is executed so that the php interpreter can utilize php code properly rather then just displaying it as text.

So depending on whether or not you choose to write a templating engine or use one that is already made for you and released as open source, depends on what it would mean to yourself
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1