mirror of
https://github.com/getformwork/formwork.git
synced 2025-02-24 09:42:43 +01:00
Add attr
helper to View
and TemplateHelpers
classes
This commit is contained in:
parent
a892f04af8
commit
700a078af0
@ -8,6 +8,7 @@ use Formwork\Core\Assets;
|
||||
use Formwork\Core\Formwork;
|
||||
use Formwork\Template\Renderer;
|
||||
use Formwork\Utils\FileSystem;
|
||||
use Formwork\Utils\HTML;
|
||||
use Formwork\Utils\Str;
|
||||
use LogicException;
|
||||
use RuntimeException;
|
||||
@ -43,6 +44,7 @@ class View
|
||||
* @var array
|
||||
*/
|
||||
protected static $helpers = [
|
||||
'attr' => [HTML::class, 'attributes'],
|
||||
'escape' => [Str::class, 'escape'],
|
||||
'removeHTML' => [Str::class, 'removeHTML']
|
||||
];
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
namespace Formwork\Template;
|
||||
|
||||
use Formwork\Utils\HTML;
|
||||
use Formwork\Utils\Str;
|
||||
use LogicException;
|
||||
use RuntimeException;
|
||||
@ -14,6 +15,7 @@ class TemplateHelpers
|
||||
* @var array
|
||||
*/
|
||||
protected static $helpers = [
|
||||
'attr' => [HTML::class, 'attributes'],
|
||||
'escape' => [Str::class, 'escape'],
|
||||
'removeHTML' => [Str::class, 'removeHTML']
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user