Template. How can this problem be solved?

Source: Internet
Author: User
Template .. Today, I read the code of the company's programmers and used the template (I have never touched the template before). the html page contains the following sentence: & lt; ahref = & quot; {# feedbacklink #}& quot; target = _ blank & gt; I don't understand how {# feedbacklink #} is resolved to an address. how should I understand it ?, Use a regular template ..
Today, I read the code of the company's programmers and used a template (I have never touched the template before). the html page contains the following sentence: I don't understand how {# feedbacklink #} is resolved to an address. how should I understand it?

------ Solution --------------------
Use the regular expression to retrieve the feedbacklink and put $ into the {##} on both sides of the variable.
Final

------ Solution --------------------
For example, a is a template page, B is a PHP page.
Then there is a function str_replace ("{replaced content}", $ replaced content, $ str); on page B to parse ------ solution --------------------
On the second floor, you can see if there is a Smarty. class. php or something.

See the smarty manual again.



Php ORM database class
Http://topic.csdn.net/u/20100228/22/3bea834b-efc0-4aa0-af4a-a4923af8b60c.html

Download
Http://code.google.com/p/queryphp/downloads/list


------ Solution --------------------
{# Feedbacklink #} is a template variable. it must have a php variable $ feedbacklink.

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.