Template-related solutions

Source: Internet
Author: User
Template-related products have seen Smarty, but it is really too huge to use a lot of things, and the related syntax has to be re-learned! Therefore, I decided to write a simple script by myself. the implementation based on the php native script is very simple, but the security is too low! However, regular expressions have never been learned well (after all, php can replace regular expressions). well, I decided to start learning regular expressions well. however, to replace general user-defined functions, however, replacing the system function or shielding the Template-related
I have read Smarty, but it's really too big. I can't use a lot of things, and I have to re-learn the related syntax! Therefore, I decided to write a simple script by myself. the implementation based on the php native script is very simple, but the security is too low! However, regular expressions have never been learned well (after all, php can replace regular expressions). well, I decided to start learning regular expressions well. however, to replace general user-defined functions, but how can we replace or block system functions? For more information, I can see that some of them may even make tpl unable to declare functions. how can this problem be solved? Sorry, maybe this is simple, but I'm a Cainiao, isn't it? Haha

------ Solution --------------------
Http://www.php100.com/html/webkaifa/PHP/PHPyingyong/2009/0412/290.html
Http://book.51cto.com/art/200909/154077.htm
It's actually quite simple to write your own smarty, but it's actually a little huge.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.