首页| 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
  • WYG 1天前 成为了本站会员

  • Shine 1天前 成为了本站会员

  • 柳贻 1天前 成为了本站会员

  • hallelujah_HL 1天前 成为了本站会员

  • 焦昱贺 1天前 成为了本站会员

  • Rubin 1天前 成为了本站会员

  • Li 2天前 成为了本站会员

  • bigfatcat1977 3天前 成为了本站会员

  • just4down 3天前 成为了本站会员

  • shallow 3天前 成为了本站会员

0.220202s