₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,329,106 members, 8,438,823 topics. Date: Saturday, 04 July 2026 at 03:40 AM

Toggle theme

Code Igniter Services Or A Third Party DI Container - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingCode Igniter Services Or A Third Party DI Container (268 Views)

1 Reply (Go Down)

Code Igniter Services Or A Third Party DI Container by chukwuebuka65(op): 4:14pm On Oct 28, 2023
So a friend running a small business asked me to develop a website for him. Looking for a light-weight php framework, I decided to do it in codeigniter. But going through the documentation, I noticed it doesn’t come with a DI container out of the box but rather provides a service class for creating your objects . Although the service class resolves and provides all the dependencies the class will need, I still don’t like fact that you will manually call the service class from inside the controller. Do DI containers affect application performance? If not, why is codeigniter doing it differently.
Re: Code Igniter Services Or A Third Party DI Container by silento(m): 6:17pm On Oct 28, 2023
It won't affect anything
Re: Code Igniter Services Or A Third Party DI Container by chukwuebuka65(op): 6:28pm On Oct 28, 2023
silento:
It won't affect anything
I quess they just want to do something different then.
Re: Code Igniter Services Or A Third Party DI Container by qtguru(m): 6:33pm On Oct 28, 2023
chukwuebuka65:
So a friend running a small business asked me to develop a website for him. Looking for a light-weight php framework, I decided to do it in codeigniter. But going through the documentation, I noticed it doesn’t come with a DI container out of the box but rather provides a service class for creating your objects . Although the service class resolves and provides all the dependencies the class will need, I still don’t like fact that you will manually call the service class from inside the controller. Do DI containers affect application performance? If not, why is codeigniter doing it differently.
DI is more of a design pattern.
Re: Code Igniter Services Or A Third Party DI Container by chukwuebuka65(op): 7:54pm On Oct 28, 2023
qtguru:
DI is more of a design pattern.
Ok.
1 Reply

Code Igniter Vs Larevel Which Is The Best??Code Igniter/js Developer Needed For Urgent EmploymentA Thread For PHP Code Igniter Framework Tutorial234

Banking Script For Just 10kAbuja Corper With Software Engineering Experience Looking For PPAWhatsapp's Struggles To Catch Up With Telegram And Outshine Them