Home  >  Article  >  Backend Development  >  请前辈帮小弟我解释一上上面的语句是什么意思,多谢

请前辈帮小弟我解释一上上面的语句是什么意思,多谢

WBOY
WBOYOriginal
2016-06-13 12:52:13913browse

请前辈帮我解释一下下面的语句是什么意思,谢谢

<?<br />
session_start();<br />
require_once("common/Common.inc.php");<br />
$AgentInfo = GetAgentInfo();<br />
$mainTpl = new MySmarty();<br />
$mainTpl->assign("title",$AgentInfo['SiteTitle']);<br />
$pro1362 = PInfo(1362);<br />
$pro1372 = PInfo(1372);<br />
$pro1363 = PInfo(1363);<br />
$pro1373 = PInfo(1373);<br />
$pro1367 = PInfo(1367);<br />
$pro1377 = PInfo(1377);<br />
$pro1368 = PInfo(1368);<br />
$pro1378 = PInfo(1378);<br />
$pro1369 = PInfo(1369);<br />
$pro1379 = PInfo(1379);<br />
$pro3180 = PInfo(3180);<br />
$arrskins = LoadAutoWebSkins();<br />
$arrskins = array_reverse($arrskins);<br />
$arrskins = array_slice($arrskins,40,20);<br />
$mainTpl->assign("price1362",$pro1362['iPrice']);<br />
$mainTpl->assign("price1372",$pro1372['iPrice']);<br />
$mainTpl->assign("price1363",$pro1363['iPrice']);<br />
$mainTpl->assign("price1373",$pro1373['iPrice']);<br />
$mainTpl->assign("price1367",$pro1367['iPrice']);<br />
$mainTpl->assign("price1377",$pro1377['iPrice']);<br />
$mainTpl->assign("price1368",$pro1368['iPrice']);<br />
$mainTpl->assign("price1378",$pro1378['iPrice']);<br />
$mainTpl->assign("price1369",$pro1369['iPrice']);<br />
$mainTpl->assign("price1379",$pro1379['iPrice']);<br />
$mainTpl->assign("price3180",$pro3180['iPrice']);<br />
$mainTpl->assign("skins",$arrskins);<br />
$mainTpl->display('autoweb_index.html');<br />
$DB->close();<br />
?>


刚接手PHP,不会,但有工作任务。谢谢前辈们了。


------解决方案--------------------
属于smarty的知识,建议先去看看smarty文档。
------解决方案--------------------
一看就是  smarty   
session_start();  //开启session
require_once("common/Common.inc.php");  //包含配置文件
$mainTpl = new MySmarty();  //实例化类

然后一系列$mainTpl->assign()  都是在传值

最后$mainTpl->display('autoweb_index.html');  //模版页面
关闭数据库。
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn