/chocolate

Front-End Framework Helpers for CakePHP 3.0

Primary LanguagePHP

Front-End Framework Helpers

This plugins goal is to help you speed up implementing a Front-End framework like Bootstrap.

This plugin does not load the required CSS or JavaScript, but merely adds the classes and markup,

Installation

Run composer require commercial-hippie/chocolate:dev-master or add the following into your composer.json and run composer update.

"require" : {
  "commercial-hippie/chocolate": "dev-master"
}

Load the plugin in your bootstrap file

// /src/Config/bootstrap.php
Plugin::load('Chocolate');

Usage

Make sure you loaded the required CSS/JavaScript for what you are trying to do.

Forms

Load the plugins FormHelper in your Controller:

public $helpers = [
	'Form' => [
		'className' => 'Chocolate.BootstrapForm'
	]
];