euromark 11 years ago
parent
commit
23ef18bce0
1 changed files with 7 additions and 9 deletions
  1. 7 9
      README.md

+ 7 - 9
README.md

@@ -28,31 +28,29 @@ That's it. It should be up and running.
 ## The basics
 ## The basics
 This will load the plugin:
 This will load the plugin:
 ```php
 ```php
-Plugin::load('Tools', array('namespace' => 'Dereuromark\\Tools'));
+Plugin::load('Tools');
 ```
 ```
 or
 or
 ```php
 ```php
-Plugin::loadAll(array(
-		'Tools' => array('namespace' => 'Dereuromark\\Tools'
-));
+Plugin::loadAll();
 ```
 ```
 
 
 In case you want the Tools bootstrap file included (recommended), you can do that in your `APP/Config/bootstrap.php` with
 In case you want the Tools bootstrap file included (recommended), you can do that in your `APP/Config/bootstrap.php` with
 
 
 ```php
 ```php
-Plugin::load('Tools', array('bootstrap' => true, 'namespace' => 'Dereuromark\\Tools'));
+Plugin::load('Tools', array('bootstrap' => true));
 ```
 ```
 
 
 or
 or
 
 
 ```php
 ```php
 Plugin::loadAll(array(
 Plugin::loadAll(array(
-		'Tools' => array('bootstrap' => true, 'namespace' => 'Dereuromark\\Tools'
+		'Tools' => array('bootstrap' => true
 ));
 ));
 ```
 ```
 
 
 ## Namespacing
 ## Namespacing
-Using Cake3 and namespaces, don't forget to add "Dereuromark\Tools" as namespace to new files.
+Using Cake3 and namespaces, don't forget to add "Tools" as namespace to new files.
 Also don't forget the `use` statements.
 Also don't forget the `use` statements.
 
 
 If you create a new behavior in the plugin, it might look like this:
 If you create a new behavior in the plugin, it might look like this:
@@ -77,8 +75,8 @@ class MySluggedBehavior extends SluggedBehavior {
 Note that use statements should be in alphabetical order.
 Note that use statements should be in alphabetical order.
 See CakePHP coding standards for details.
 See CakePHP coding standards for details.
 
 
-### Shortened namespacing for internal handling
-Internally (method access), you don't use the vendor namespace. The plugin name suffices:
+### Internal handling via plugin dot notation
+Internally (method access), you don't use the namespace declaration. The plugin name suffices:
 ```php
 ```php
 // In a Table
 // In a Table
 $this->addBehavior('Tools.Slugged'); // Adding SluggedBehavior
 $this->addBehavior('Tools.Slugged'); // Adding SluggedBehavior