2017 © Pedro Peláez
 

cakephp-plugin blocks

Blocks plugin for CakePHP

image

ciricihq/blocks

Blocks plugin for CakePHP

  • Friday, July 1, 2016
  • by gtrias
  • Repository
  • 2 Watchers
  • 3 Stars
  • 2,603 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 5 % Grown

The README.md

CakePHP Blocks Plugin

Build Status Coverage Total Downloads License, (*1)

A really simple plugin that allows you to manage and show small content blocks., (*2)

Install

Using Composer:, (*3)

composer require ciricihq/blocks

You then need to load the plugin. You can use the shell command:, (*4)

bin/cake plugin load Cirici/Blocks

or by manually adding statement shown below to your app's config/bootstrap.php:, (*5)

Plugin::load('Cirici/Blocks');

Usage

There's a Trait that does all the job, and we've created a BlockHelper and a BlockComponent so you can use them easily on your CakePHP app., (*6)

To start using them, just load whatever class you want., (*7)

For the BlockHelper, on your AppView's initialize method, add:, (*8)

// src/View/AppView.php
public function initialize()
{
    $this->loadHelper('Cirici/Blocks.Block');
}

For the BlockComponent, on your AppController's initialize:, (*9)

// src/Controller/AppController.php
public function initialize()
{
    $this->loadComponent('Cirici/Blocks.Block');
}

Methods

Right now there are just two methods available (as said, this plugin is really simple):, (*10)

  • get: retrieves the entire Block entity by its slug.
  • getContents: just returns the Block's content field contents.

Patches & Features

  • Fork
  • Mod, fix
  • Test - this is important, so it's not unintentionally broken
  • Commit - do not mess with license, todo, version, etc. (if you do change any, bump them into commits of their own that I can ignore when I pull)
  • Pull request - bonus point for topic branches

Bugs & Feedback

http://github.com/ciricihq/cake-blocks/issues, (*11)

License

Copyright (c) 2016, Cirici New Media and licensed under GNU GPL3 license., (*12)

The Versions

01/07 2016

dev-master

9999999-dev

Blocks plugin for CakePHP

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

by Enyeli González

plugin cakephp view

01/07 2016

0.6.1

0.6.1.0

Blocks plugin for CakePHP

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

by Enyeli González

plugin cakephp view

10/06 2016

0.6.0

0.6.0.0

Blocks plugin for CakePHP

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

by Enyeli González

plugin cakephp view

13/04 2016

0.5.0

0.5.0.0

Blocks plugin for CakePHP

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

by Enyeli González

plugin cakephp view

12/04 2016

0.2.0

0.2.0.0

Blocks plugin for CakePHP

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

by Enyeli González

plugin cakephp view

09/03 2016

0.1.0

0.1.0.0

Blocks plugin for CakePHP

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

by Enyeli González

plugin cakephp view