Awilum Posted May 1, 2011 Share Posted May 1, 2011 I wrote this simple template engine for PHP! Simple php application <?php // Include TCodes include 'tcodes/TCodes.php'; // Add new tcode addTCode('message','Hello world!'); // Adding Dynamic Data $vars['admin'] = true; $vars['username'] = 'Username'; // Loading a Template template('templates/page.php',$vars); ?> Simple template <html> <head> <title>Simple template</title> </head> <body> {if:$admin} {echo:$username} {end} <p>{message}</p> </body> </html> Site: http://tcodes.template-cms.org/ Quote Link to comment https://forums.phpfreaks.com/topic/235298-tcodes-the-flexible-fast-and-simple-template-engine-for-php/ Share on other sites More sharing options...
Pikachu2000 Posted May 1, 2011 Share Posted May 1, 2011 And do you have a problem with which you need help? Quote Link to comment https://forums.phpfreaks.com/topic/235298-tcodes-the-flexible-fast-and-simple-template-engine-for-php/#findComment-1209179 Share on other sites More sharing options...
Awilum Posted May 1, 2011 Author Share Posted May 1, 2011 I would like to hear criticism and advice Quote Link to comment https://forums.phpfreaks.com/topic/235298-tcodes-the-flexible-fast-and-simple-template-engine-for-php/#findComment-1209182 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.