Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 878 Bytes

README.md

File metadata and controls

40 lines (29 loc) · 878 Bytes

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'
	]
];