hi was wondering how scripts like vbulletin, coronto, and many others can create macros for their scripts for instance %Links% will display links, %Subject% displays the news subject, %News% displays the news, %Template% will show the page template, etc etc. I am currently using php and would like to learn how this is done. I thought it might have been xml so I searched around for it and could not find anything..... If anyone could please provide me with links, and/or help that would be appreciated lots!
basically I want to assign macros to include files and to draw informationf rom the database, so you can easily insert a <this> or %this% or $this$ or whatever to display it.
Using Macros??
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
those are template engine variables. Research into template engines. Smarty is one: http://smarty.php.net There are many others out there.