Questions about smarty and iframe

Source: Internet
Author: User
Questions about smarty and iframe *  1.html & nbsp; * & lt; html & gt; & nbsp; & lt; body & gt; & nbsp; & lt; iframe & nbsp; namemain & nbsp; src2.php smarty and iframe problems
/* 1.html */






/* 2.php */
/* Smarty configuration file */
Include ("../chajian/smarty/smarty_config.php ");
$ A = "php learning ";
$ Smarty-> assign ('A', $ );
$ Smarty-> display('2.html ');
?>

/* 2.html */


<{$ A}>





But the result is not what I want ()

How to change it ?? Please advise ..
------ Solution --------------------
Your 2. php is not running. From your point of view, you only access this html file, and it is not accessed through a local server. you need to configure the environment.
------ Solution --------------------
LZ, now that you have done it, you have to close the post and give it to someone else.
------ Solution --------------------
Haha JF
------ Solution --------------------
The problem has been solved !!!
------ Solution --------------------
The template configuration is incorrect.
------ Solution --------------------
It is also normal for a newbie not to close the post ....
------ Solution --------------------
Through localhost, the web server runs. as shown in the figure, you can directly double-click the file to run the php program.

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.