首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > PHP > 小而强大的PHP模板引擎为母版页像C #提供能力、数据和部分。超洁净,超容易。

小而强大的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 $

文 件 列 表

PageMaster
PageMaster.php
VIP VIP
0.175480s