php母版页怎么,小而强大的PHP模板引擎为母版页像C #提供能力、数据和部分。超洁净,超容易。...

Introduction

Page Master is a templating engine which simply provides pre-built PHP functionality to your Views enabling:

* Master Pages, with no limit on nesting

* Access to ViewData

* Rendering of Partials

* Base Url resolution

Also, since this framework simply provides packaged PHP capabilities to your views, there is very little learning curve involved, unlike most templating languages which require you to learn a templating language with their own tags and looping structures.

Page Master is also extensible, so your code can easily make available your own templating functions without having to open the source code to Page Master.

Usage

In the Controller

Bootstrap PageMaster engine:

include '/path/to/PageMaster.php';$PM = new PageMaster();

Add ViewData as it becomes available if you want:

$PM->AddViewData('mydata',$mydata);

Now, in the views you can access $mydata via $

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值