运行网页空白一片,不知道是不是哪里没有引用正确
所有的文件夹在同一个目录下面
我自己的项目包含目前如下几个文件夹
/Smarty
/smarty_cache 这个文件是我单独创建的
/templates 这个文件是我单独创建的
/templates_c 这个文件是我单独创建的
三个文件     /index.php       /smarty.inc.php        /templates/index.cpl
其中index.php中的内容如下:
1	<?php
2	 
3	include('smarty.inc.php');
4	$smarty->assign('kaishi','这个不知到怎么样,测试看看!');
5	$smarty->display('index.cpl');
6	 
7	?>smarty.inc.php中的代码如下:
01	<?php
02	include_once("./Smarty/Smarty.class.php");//包含smarty类文件
03	$smarty=new Smarty();//建立Smarty实例对象$smarty
04	$smarty->config_dir="./Smarty/Config_File.class.php";//目录变量设置类
05	$smarty->caching=false;//不使用缓存
06	$smarty->template_dir="./templates";//设置模板目录
07	$smarty->complie_dir="./templates_c";//设置模板编译目录
08	$smarty->cache_dir="./smarty_cache";//缓存文件夹
09	$smarty->left_delimiter="{";
10	$smarty->right_delimiter="}";
11	?>/templates/index.cpl 中代码如下:
01	<html>
02	<head>
03	<title>
04	{$kaishi}
05	</title>
06	</head>
07	<body>
08	<div>
09	<strong>hello,{$kaishi}</strong>
10	</div>
11	</body>
12	</html>运行网页之后是一片空白