I’m new to code igniter. I’m going to create some generic functions like random_string($length), row_color($evenStyle, $oddStyle) etc…
Where do I put these functions such that they are accessible to my controller and view files?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It sounds like a helper is a good place for those.
https://www.codeigniter.com/user_guide/general/helpers.html