Avatar of umaxim
Flag for United States of America asked on


Hi i just begin to study codeigniter and i make my own cms so i need to create a function to take information from database and put in on header like name of website name of the page. I do not want to copy the same 10 line of code over and over in each file. I just want to create some function so i can run it and it automaticaly will put all that information to the array. In regular php with out framework i was just create a regular function but what you can recomend me to do in this type of framework.

Avatar of undefined
Last Comment
Loganathan Natarajan

8/22/2022 - Mon

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Loganathan Natarajan

also try this simple tutorial,

All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck