Using Macros??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rs131
Forum Newbie
Posts: 5
Joined: Sat Jan 22, 2005 12:52 pm
Contact:

Using Macros??

Post by rs131 »

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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

those are template engine variables. Research into template engines. Smarty is one: http://smarty.php.net There are many others out there.
Post Reply