Welcome Guest, Not a member yet? Register   Sign In
Creating common controllers
#1

[eluser]patilshailesh[/eluser]
Dear All

I need to create a common controllers (kind of repositories) which access their models and use in different application.
For eg: I have 1 main set of controllers and models.

controller1.php: I have method which returns user_id


In my app 1: I will use same controller1.php but, with different behavior. it will return user_id, Contact full name
In my app 2: I will use same controller1.php but, in this case, it will return user_id, contact_id, contact name and date of birth as well.

So, base class and database interaction may remain same, but i need to extend the controllers and models.

How can i achieve this?
thank you in advance


Messages In This Thread
Creating common controllers - by El Forum - 10-11-2013, 06:31 AM
Creating common controllers - by El Forum - 10-14-2013, 04:41 AM
Creating common controllers - by El Forum - 10-14-2013, 09:40 AM
Creating common controllers - by El Forum - 10-14-2013, 10:25 PM
Creating common controllers - by El Forum - 10-15-2013, 02:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB