Hello TastyIgniter Community,
I’ve recently encountered an issue with my TastyIgniter installation that I hope to get some clarification on. After setting up TastyIgniter for my project, I ran into a “Call to undefined function” error related to the name_to_array function, which I discovered is defined in app/system/helpers/support_helper.php. Upon investigating, I noticed that this helper file was not included in Composer’s autoload_files.php, leading to the function not being recognized in the global namespace.
To resolve the issue, I manually added the support_helper.php file to the autoload section of my composer.json like so:
"autoload": {
"files": [
"app/system/helpers/support_helper.php"
]
}
And then ran the installation steps again which include composer install
, which successfully fixed the error and made the name_to_array function available globally.
Before I proceed further, I wanted to ask the community and the maintainers:
Is this manual addition to the composer.json file an intended step that perhaps I missed in the documentation?
Or could it be possible that there was an oversight in the autoload configuration in the TastyIgniter setup that I received?
I’m keen to understand whether my installation process might have missed a crucial step or if this is something that others have experienced and addressed in a similar manner.
Thank you in advance for your insights and assistance.
Best regards,
Liem