Welcome Guest, Not a member yet? Register   Sign In
Special classes
#1

[eluser]Unknown[/eluser]
Hi

I have a web application for projects and timesheets, powered by codeigniter.

My customers have different needs for functions for making it easier for them to manage their projects and timesheets.
So I have created different functions in my projects controller for each customer, and remove the ones I dont need on each customer.
But that is very messy.

What is the best way to accomplish this in having different classes for each set of functions for each customer? So I can use a base application with codeigniter and everything that is the same on every customer, and include only the classes I need.

Example: I basically have three controllers, Home (just statistics etc.), Projects and Timesheets.
One of my customers use a function for creating 6 projects at once with the same account, just different cost-location, and different names and budgets that are generated in the class.
What type of class would I put this function in? Helper? And what class should it extend?

Btw: The customers are not using the same installation of codeigniter, they are on different domains




Theme © iAndrew 2016 - Forum software by © MyBB