{variablenamehere} What is the name of this systeme??

Status
Not open for further replies.

Spartak

Member
Sep 24, 2011
225
33
Hey,

can someone tel me what the name of what this for exe: {respect} {username}, Kryptos use that x_x

i want to learn that its pretty good :p
 

Heaplink

Developer & Designer
Nov 9, 2011
510
173
What it does is parse the HTML/PHP files for those tags.

F.eks. I create a file with this content:
Code:
Hello, {user}
 
My we here at {company} are happy to [...]
 
Regards,
{signature}

Then I use a code to check every text starting with { and ending with } and get the value between those. I then have an array of names e.g.:
Code:
$param = array();
 
$param['user'] = "Heaplink";
$param['company'] = "Your company";
$param['signature'] = "Another value";

and replace the {} tags with the values for the array items who have the same name as the tag name inside the {}

This is what RevCMS does. It can be found in the class.template.php
 
Status
Not open for further replies.

Users who are viewing this thread

Top