euromark 11 years ago
parent
commit
cb8046ab2e
2 changed files with 3 additions and 3 deletions
  1. 2 2
      docs/Behavior/Jsonable.md
  2. 1 1
      docs/Behavior/Slugged.md

+ 2 - 2
docs/Behavior/Jsonable.md

@@ -20,7 +20,7 @@ A CakePHP behavior to automatically store nested data as JSON string and return
 - 'decodeParams' // params for json_decode
 
 ## Usage
-Attach it to your models in `initialze()` like so:
+Attach it to your models in `initialize()` like so:
 ```php
 $this->addBehavior('Tools.Jsonable', $config);
 ```
@@ -79,7 +79,7 @@ debug($entity->get('details'));
 we can also simulate an ENUM by using
 ```php
 $this->addBehavior('Tools.Jsonable',
-	array('fields' => 'tags', 'sort' => true, 'input' => 'list', 'output' => 'array'));
+	array('fields' => 'tags', 'sort' => true, 'unique' => true, 'input' => 'list', 'output' => 'array'));
 ```
 Dont' forget to use `'output' => 'list'` for add/edit actions.
 

+ 1 - 1
docs/Behavior/Slugged.md

@@ -38,7 +38,7 @@ A CakePHP behavior to automatically create and store slugs.
 - tidy: If cleanup should be run on slugging
 
 ## Usage
-Attach it to your models in `initialze()` like so:
+Attach it to your models in `initialize()` like so:
 ```php
 $this->addBehavior('Tools.Slugged', $config);
 ```