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.