Browse Source

Update Format.md

Mark Sch 5 years ago
parent
commit
80ac65bd8d
1 changed files with 9 additions and 0 deletions
  1. 9 0
      docs/Helper/Format.md

+ 9 - 0
docs/Helper/Format.md

@@ -24,6 +24,15 @@ echo $this->Html->link(
 );
 ```
 
+Font Awesome v4 works out of the box.
+For v5 you want to use a custom namespace and prefix (either in app.php or in AppView.php):
+```php
+$this->loadHelper('Tools.Format', [
+    'iconNamespace' => 'fas',
+    'autoPrefix' => 'fa',
+]);
+```
+
 You can alias them via Configure for more usability:
 ```php
 // In app.php