![]() |
On codeigniter 4.3.7 site I need to create a custom helper so I created a file app/Helpers/helper.php with code:
PHP Code: <?php I try to call this method from view file app/Views/admin/categories/index.php: PHP Code: <?php helper('helper'); ?> But I got error that function formatDateTime not found even after in app/Config/Autoload.php I added ref to my helper file : PHP Code: public $helpers = [ Have I to run some console commands to use my helper ? Thanks in advance! |
Messages In This Thread |
How to call function from custom helper ? - by petrogromovo - 10-02-2023, 07:22 AM
RE: How to call function from custom helper ? - by JustJohnQ - 10-02-2023, 07:30 AM
RE: How to call function from custom helper ? - by AlexSchneider - 12-04-2023, 02:11 PM
RE: How to call function from custom helper ? - by kenjis - 12-04-2023, 02:35 PM
RE: How to call function from custom helper ? - by AlexSchneider - 12-04-2023, 07:29 PM
RE: How to call function from custom helper ? - by vitnibel - 12-04-2023, 06:29 PM
RE: How to call function from custom helper ? - by kenjis - 12-05-2023, 05:43 PM
|