//php代码<?php$oot='你好';require_once ('libs/Smarty.class.php');$a=new Smarty();$a->assign('oot','$oot');$a->display('hello.html');
//html代码<!DOCTYPE html>
$a->assign('oot','$oot');------->$a->assign('oot',$oot);