Jump to content

question about text templates


ozone

Recommended Posts

Hi all. So, I`m writing smth like community & I need few things. I have seen in other scipts that they send emails filled with {var} or %var, when scriptis running it fills needed vars to those gaps. files calles page.tpl if I remember good.

Also if someone interests, please PM or email me, becouse nw there`s two of us :) Thx for helping.

Link to comment
https://forums.phpfreaks.com/topic/39044-question-about-text-templates/
Share on other sites

These files are template files with names of variables between {varname} or %varname% or anything else there are plenty of templting systems out there including smarty templating system, phplib templates etc. You can write a simple one yourself. Create a template file with all the variables you want to be replaced with {} or %% format.  In your php code replace all the template variables with variables in your php code. Simple as that  :D

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.