S Spartak Member Sep 24, 2011 225 33 Jan 11, 2012 #1 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
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
Heaplink Developer & Designer Nov 9, 2011 510 173 Jan 11, 2012 #2 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 Upvote 0 Downvote
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
S Spartak Member Sep 24, 2011 225 33 Jan 11, 2012 Thread starter #3 Thank's Heaplink Short tutorial but usefull :3 Upvote 0 Downvote