Browse Source

Update README.md

Mark S 9 years ago
parent
commit
6db0ffca8d
1 changed files with 12 additions and 11 deletions
  1. 12 11
      README.md

+ 12 - 11
README.md

@@ -1,7 +1,6 @@
 # CakePHP Tools Plugin
 [![Build Status](https://api.travis-ci.org/dereuromark/cakephp-tools.svg?branch=2.x)](https://travis-ci.org/dereuromark/cakephp-tools)
 [![Coverage Status](https://img.shields.io/codecov/c/github/dereuromark/cakephp-tools/2.x.svg)](https://codecov.io/github/dereuromark/cakephp-tools?branch=2.x)
-[![Latest Stable Version](https://poser.pugx.org/dereuromark/cakephp-tools/v/stable.svg)](https://packagist.org/packages/dereuromark/cakephp-tools)
 [![Minimum PHP Version](http://img.shields.io/badge/php-%3E%3D%205.4-8892BF.svg)](https://php.net/)
 [![License](https://poser.pugx.org/dereuromark/cakephp-tools/license.svg)](https://packagist.org/packages/dereuromark/cakephp-tools)
 [![Total Downloads](https://poser.pugx.org/dereuromark/cakephp-tools/d/total.svg)](https://packagist.org/packages/dereuromark/cakephp-tools)
@@ -36,15 +35,15 @@ That's it. It should be up and running.
 In case you want the Tools bootstrap file included (recommended), you can do that in your `APP/Config/bootstrap.php` with
 
 ```php
-CakePlugin::load('Tools', array('bootstrap' => true));
+CakePlugin::load('Tools', ['bootstrap' => true]);
 ```
 
 For `CakePlugin::loadAll()` it's
 
 ```php
-CakePlugin::loadAll(array(
-		'Tools' => array('bootstrap' => true)
-));
+CakePlugin::loadAll([
+		'Tools' => ['bootstrap' => true]
+]);
 ```
 
 MyModel can be extended to use more powerful validation and other improvements:
@@ -102,12 +101,14 @@ For a quick reference or some larger modules see the [Tools Plugin Wiki](https:/
 For including components, helper and behaviors you don't need App::uses() calls.
 So for a pretty standard CakePHP app with some Tools plugin enhancements, the AppController could look like this:
 ```php
-public $components = array(
-	'Session', 'RequestHandler', 'Tools.Common', 'Auth');
-
-public $helpers = array(
-	'Session', 'Html', 'Form' => array('className' => 'Tools.FormExt'),
-	'Tools.Common', 'Tools.Format', 'Tools.Datetime', 'Tools.Numeric');
+public $components = [
+	'Session', 'RequestHandler', 'Tools.Common', 'Auth'
+];
+
+public $helpers = [
+	'Session', 'Html', 'Form' => ['className' => 'Tools.FormExt'],
+	'Tools.Common', 'Tools.Format', 'Tools.Datetime', 'Tools.Numeric'
+];
 ```
 
 ## The cool stuff