Welcome Guest, Not a member yet? Register   Sign In
Best way to have multiple parent controllers
#4

[eluser]wiredesignz[/eluser]
[quote author="Opel" date="1241323840"]

1. I propsed using HMVC and the hooks which was successfull although required switch statement and rest of team werent keep on using a 3rd party code that was no longer supported.

Please could anyone give advice or tips ?[/quote]

Modular Extensions HMVC is still supported.

[quote author="Yorick Peterse" date="1241323980"]...Next thing you need to do is to make controller 3 extend controller 2 and controller 2 should be extending controller 1. However, doesn't this kill the general idea behind Object Oriented programming ?[/quote]

Alas poor Yorick, That doesn't kill anything, it IS the whole idea behind object oriented programming.

@Opel,

MY_Controller does not have to be a parent class.

The MY_Controller.php file may be used as a container to hold as many controller base classes as you require. Alternatively add your discrete controller base class files to application/libraries and "include" them from within MY_Controller.php

Note that this is MX_Controller.php when using HMVC.

Good luck.


Messages In This Thread
Best way to have multiple parent controllers - by El Forum - 05-02-2009, 05:10 PM
Best way to have multiple parent controllers - by El Forum - 05-02-2009, 05:13 PM
Best way to have multiple parent controllers - by El Forum - 05-02-2009, 05:16 PM
Best way to have multiple parent controllers - by El Forum - 05-02-2009, 06:51 PM
Best way to have multiple parent controllers - by El Forum - 05-02-2009, 09:57 PM
Best way to have multiple parent controllers - by El Forum - 05-03-2009, 01:52 AM
Best way to have multiple parent controllers - by El Forum - 05-03-2009, 03:26 AM
Best way to have multiple parent controllers - by El Forum - 05-03-2009, 03:39 AM
Best way to have multiple parent controllers - by El Forum - 05-03-2009, 03:49 AM
Best way to have multiple parent controllers - by El Forum - 05-03-2009, 04:37 AM
Best way to have multiple parent controllers - by El Forum - 05-03-2009, 05:24 AM
Best way to have multiple parent controllers - by El Forum - 05-03-2009, 09:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB