nbsp; pageFooter.sspC pageHeader.sspC salePageBody.sspC sale pageContent.sspC 注意我们也需要在''./WEB-INF/tpl_C''下创建sale目录.
设置PHP.MVC库的路径和包含
检查以下路径设置已经被定义在GlobalPaths.php和globalPrepend.php文件在你的框架安装目录下的"/WEB-INF"目录下: GlobalPaths.php ------------------------------------------------ $appDirs[] = ''WEB-INF/lib/phpmvc_tags'';
globalPrepend.php ------------------------------------------------ include_once ''PhpMVC_Tags.php''; 如果他们没有在添加到路径里,那么就定义这些变量.
安装PHP.MVC库
下载最新版的PHP.MVC库:http://www.phpmvc.net/download/cvsIdx.php?doc=cvs-snaps 解压库文档到一个目录.修改上面所描述过的路径设置和包含设置.
运行例子应用程序
下载例子应用程序.完整的例子代码文件和这个向导都能在这里下载:http://www.phpmvc.net/download/rel/phpmvc-tags-v1.0.zip 解压到web服务器目录中.可能像这样:C:/WWW/PhpMVC-Tags 修改应用程序和框架设置. 为了测试例子程序,需要浏览器例子程序的首页:http://localhost/PhpMVC-Tags/Index.html
附录A:ViewResources配置类
ViewResourcesConfig类表现了<view-resource>元素的配置信息. 下表列出了ViewResourcesConfig类的属性,条目描述和默认值:
Name |
Description |
Default Value |
$appTitle |
The application title |
''My Web Application'' |
$appVersion |
The application version |
''1.0'' |
$copyright |
The copyright notice |
''Copyright C YYYY My Name. All rights reserved.'' |
$contactInfo |
The contact information |
|
$processTags |
Do we run the template engine processor (boolean) |
False |
$compileAll |
Force compile pages (boolean) |
False |
$tagL |
The left tag identifier |
''<@'' |
$tagR |
The right tag identifier |
|
$tplDir |
The view resource templates directory |
''./WEB-INF/tpl'' |
$tplDirC |
The compiled templates directory |
''./WEB-INF/tpl_C'' |
$extC |
The compiled file notation. Eg: "pageContent.ssp[C]" |
''C'' |
$maxFileLength |
The maximum size of the template files allowed, in bytes (integer) |
250000 |
$tagFlagStr |
Indicates tag template file(s) to be pre-processed. Eg: "myPage.ssp" |
''.ssp'' |
$tagFlagCnt |
The number of trailing filename characters to sample (".ssp" = -4) |
-4 | |