Ask the seniors to help me explain what the following statement means. Thank you & lt ;? Session_start (); require_once ("common/Common. inc. php "); $ AgentInfo & nbsp ;=& nbsp; GetAgentInfo (); $ mainTpl & nbsp ;=& nbsp ask the seniors to help me explain what the following statement means. thank you.
session_start();
require_once("common/Common.inc.php");
$AgentInfo = GetAgentInfo();
$mainTpl = new MySmarty();
$mainTpl->assign("title",$AgentInfo['SiteTitle']);
$pro1362 = PInfo(1362);
$pro1372 = PInfo(1372);
$pro1363 = PInfo(1363);
$pro1373 = PInfo(1373);
$pro1367 = PInfo(1367);
$pro1377 = PInfo(1377);
$pro1368 = PInfo(1368);
$pro1378 = PInfo(1378);
$pro1369 = PInfo(1369);
$pro1379 = PInfo(1379);
$pro3180 = PInfo(3180);
$arrskins = LoadAutoWebSkins();
$arrskins = array_reverse($arrskins);
$arrskins = array_slice($arrskins,40,20);
$mainTpl->assign("price1362",$pro1362['iPrice']);
$mainTpl->assign("price1372",$pro1372['iPrice']);
$mainTpl->assign("price1363",$pro1363['iPrice']);
$mainTpl->assign("price1373",$pro1373['iPrice']);
$mainTpl->assign("price1367",$pro1367['iPrice']);
$mainTpl->assign("price1377",$pro1377['iPrice']);
$mainTpl->assign("price1368",$pro1368['iPrice']);
$mainTpl->assign("price1378",$pro1378['iPrice']);
$mainTpl->assign("price1369",$pro1369['iPrice']);
$mainTpl->assign("price1379",$pro1379['iPrice']);
$mainTpl->assign("price3180",$pro3180['iPrice']);
$mainTpl->assign("skins",$arrskins);
$mainTpl->display('autoweb_index.html');
$DB->close();
?>
I just took over PHP. no, but I have a job. Thank you.
------ Solution --------------------
Knowledge of smarty. we recommend that you first read the smarty documentation.
------ Solution --------------------
Smarty
Session_start (); // enable session
Require_once ("common/Common. inc. php"); // contains the configuration file
$ MainTpl = new MySmarty (); // instantiate the class
Then a series of $ mainTpl-> assign () values are passed
Last $ mainTpl-> display('autoweb_index.html '); // template page
Shut down the database.