Skip to content

Commit c7f7bf2

Browse files
committed
Update custom filters sample code
1 parent 6f5e794 commit c7f7bf2

File tree

1 file changed

+2
-2
lines changed
  • user_guide_src/source/outgoing/view_parser

1 file changed

+2
-2
lines changed

user_guide_src/source/outgoing/view_parser/012.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
class View extends BaseView
88
{
99
public $filters = [
10-
'abs' => '\CodeIgniter\View\Filters::abs',
11-
'capitalize' => '\CodeIgniter\View\Filters::capitalize',
10+
'foo' => '\Some\Class::methodName',
11+
'str_repeat' => 'str_repeat', // native php function
1212
];
1313

1414
// ...

0 commit comments

Comments
 (0)