Welcome Guest, Not a member yet? Register   Sign In
Can a lot of functions in one controller file slows down the whole thing?
#1
Exclamation 

Hello everyone,
I need to know something. Assume we put a lot of functions in controller for MVC. What is the best practice for system efficiency? Should I put them in different controllers or keep them inside one controller? Can putting so many functions in one controller class makes things slower?
Reply
#2

Yes it can make it slow down, but you would not really notice it with the speed of servers now days.

You can put them in a helper or or a class library, if they are for database access then place them into the model.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB