euromark 11 years ago
parent
commit
ce61bede51
3 changed files with 10 additions and 2 deletions
  1. 1 1
      README.md
  2. 1 1
      config/bootstrap.php
  3. 8 0
      docs/Install.md

+ 1 - 1
README.md

@@ -32,7 +32,7 @@ Dev (currently), Alpha, Beta, RC, 1.0 stable (incl. tagged release then).
 - RSS and Ajax Views for better responses (Ajax also comes with an optional component).
 - Slugged and Reset behavior
 - The Text, Time, Number libs and helpers etc provide extended functionality if desired.
-- GoogleMapV3, Timeline, Typography, etc provide additional helper functionality.
+- AuthUser, Timeline, Typography, etc provide additional helper functionality.
 - Email as a wrapper for core's Email adding some more usefulness and making debugging/testing easier.
 
 ### Providing 2.x shims

+ 1 - 1
config/bootstrap.php

@@ -51,7 +51,7 @@ if (!defined('FORMAT_NICE_YMDHMS')) {
 
 // Make the app and L10n play nice with Windows.
 if (!defined('WINDOWS')) {
-	if (DS == '\\' || substr(PHP_OS, 0, 3) === 'WIN') {
+	if (DS === '\\' || substr(PHP_OS, 0, 3) === 'WIN') {
 		define('WINDOWS', true);
 	} else {
 		define('WINDOWS', false);

+ 8 - 0
docs/Install.md

@@ -73,3 +73,11 @@ $this->addBehavior('Tools.Slugged'); // Adding SluggedBehavior
 // In a Controller
 public $helpers = array('Tools.Foo'); // Adding FooHelper
 ```
+
+### Class Alias Shortcuts
+
+For Configure usage especially in view files, you can add this to the bootstrap:
+```php
+class_alias('Cake\Core\Configure', 'Configure');
+```
+This avoids having to add tons of `use` statements at the top of your view ctps.