Uh oh!
There was an error while loading. Please reload this page.
docs: fixed typo in view-parser - #7844
Conversation
Uh oh!
There was an error while loading. Please reload this page.
sammyskills
commented
Aug 22, 2023
There is something I observed in the docs for PHP native functions as filters...
The function actually works with/without the backslash |
paulbalandan
commented
Aug 22, 2023
The |
sammyskills
commented
Aug 22, 2023
Then, I suggest it should be clearly stated in the docs, something like a "note", maybe something like this:
WDYT? |
The note is more confusing.
What do you mean by exactly the same? You cannot define All PHP native functions are defined in the global namespace. |
No, @sammyskills is correct.
Yes. In this context, the function name is a callable. CodeIgniter4/system/View/Parser.php Lines 607 to 608 in 411a9bb The leading |
Uh oh!
There was an error while loading. Please reload this page.
kenjis
commented
Aug 22, 2023
The section title PHP Native functions as Filters is not accurate. |
sammyskills
commented
Aug 22, 2023
That means the section will have to be removed completely, and the |
Co-authored-by: kenjis <kenji.uui@gmail.com>
Yes, all values are PHP callables. And the first sample code is not good. public$filters = [
'abs' => '\CodeIgniter\View\Filters::abs',
'capitalize' => '\CodeIgniter\View\Filters::capitalize',
];
|
…is already covered in Custom Filters.
Description
Fixed typo in view parser docs for:
renderString()Checklist: