承接 backdrop-dev/view 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

backdrop-dev/view

最新稳定版本:v1.0.0

Composer 安装命令:

composer require backdrop-dev/view

包简介

System for setting up and rendering theme template files. Views are a bit like a suped-up version of the core WordPress get_template_part() function.

README 文档

README

The Backdrop Template View is a drop-in package for Backdrop framework for developing ClassicPress and WordPress theme. This feature is used for setting up and rendering theme template files and it is similar to the WordPress core feature get_template_part function. However it allows you to build a hierarchy of potential templates.

Requirements

Installation

Use the following command from your preferred command line utility to install Backdrop Template View

composer require backdrop-dev/view

Registering and Booting

To begin, create a new provider as follows.

$slug->provider( Backdrop\View\Provider::class );

After you have successfully registering and booting the provider, all you have to do is use the following to begin using the view

Backdrop\View\display( 'something', 'one', [ 'location' => 'data' ] );

This will create a new template call something.php. you can pass an array as well something, [ 'one, two ]. The order would be

something-two.php
something-one.php
something.php

Please also note that all templates will be located at public/views or resource/views depending on the project.

Copyright and Licenses

This project is licensed under the GNU GPL, version 2 or later.

2019–2023 © Benjamin Lu

统计信息

  • 总下载量: 393
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2024-03-25