iShaun Posted August 31, 2008 Share Posted August 31, 2008 Ok, im creating some forums software, and It seems like PCRE is the best way to impliment a template system. If I want to have the following in the template bits, how would i use PCRE to replace all of them. Examples: <% $this->foo %> i want to have that output the variable at $this->foo. how could i do this? Also, if you think there is an easier way for a template system, please let me know. -iShaun Link to comment https://forums.phpfreaks.com/topic/122153-template-system-pcre/ Share on other sites More sharing options...
trq Posted August 31, 2008 Share Posted August 31, 2008 If you simply use php tags you don't need to replace anything and it will be a hell of alot more efficient. <?php echo $foo; ?> Link to comment https://forums.phpfreaks.com/topic/122153-template-system-pcre/#findComment-630648 Share on other sites More sharing options...
iShaun Posted August 31, 2008 Author Share Posted August 31, 2008 That may be, but its much less professional. -iShaun Link to comment https://forums.phpfreaks.com/topic/122153-template-system-pcre/#findComment-630649 Share on other sites More sharing options...
trq Posted September 1, 2008 Share Posted September 1, 2008 Says who? Link to comment https://forums.phpfreaks.com/topic/122153-template-system-pcre/#findComment-630755 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.