定制 cakemanager/cakephp-textblocks 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

cakemanager/cakephp-textblocks

Composer 安装命令:

composer require cakemanager/cakephp-textblocks

包简介

TextBlocks plugin for CakePHP

README 文档

README

Note: This is a non-stable plugin for CakePHP 3.x at this time. It is currently under development and should be considered experimental.

Installation

You can install this plugin into your CakePHP application using composer.

The recommended way to install composer packages is:

composer require cakemanager/cakephp-textblocks

Now load the plugin with the command:

$ bin/cake plugin load -r -b TextBlocks

Run the database migrations with:

$ bin/cake migrations migrate --plugin TextBlocks

Usage

Register

Register new blocks with:

Blox::register('my_block');

Getting Content

You can get 2 types of contents: Title and Body. Get your title this way...

Blox::title('my_block');

And get your body this way:

Blox::body('my_block');

Variables can be passed on both of the getters:

// Imagine that the body of 'my_block' is: "Good morning, :name"

Blox::body('my_block', [
    'name' => 'Leonardo'
]);

// Output will be: "Good morning, Leonardo"

Management

The Blocks can be managed by the CakeAdmin plugin, or you can create CRUD yourself.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-06-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固