浏览代码

Update Format.md

Mark Sch 5 年之前
父节点
当前提交
80ac65bd8d
共有 1 个文件被更改,包括 9 次插入0 次删除
  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