Welcome Guest, Not a member yet? Register   Sign In
Same tasks in each controller: controller inheritance?
#6

[eluser]Randy Casburn[/eluser]
I do it with inheritance....

You can provide a folder through which all contents are secure. If the controller is in there...it is secure simply by being in there. There is little code required (a simple path change) to make this work. Remove it from the folder (change on path) and it is no longer secure.

I agree with xwero that hooks are very elegant and I do like them.

The one thing I don't like about hooks that that they are so dreadfully obscure. If you decide to use hooks, please, I emplore you comment, comment, comment your code in triplicate. Then put a text file in the root of your System directory named HOOKS that describes what hooks you have in place.

The reason is that they work behind the scenes and will be doing things that you forget about.

Just a thought.

Randy


Messages In This Thread
Same tasks in each controller: controller inheritance? - by El Forum - 10-10-2008, 05:57 AM
Same tasks in each controller: controller inheritance? - by El Forum - 10-10-2008, 06:16 AM
Same tasks in each controller: controller inheritance? - by El Forum - 10-10-2008, 06:40 AM
Same tasks in each controller: controller inheritance? - by El Forum - 10-10-2008, 06:45 AM
Same tasks in each controller: controller inheritance? - by El Forum - 10-10-2008, 06:48 AM
Same tasks in each controller: controller inheritance? - by El Forum - 10-10-2008, 09:24 AM
Same tasks in each controller: controller inheritance? - by El Forum - 10-10-2008, 09:41 AM
Same tasks in each controller: controller inheritance? - by El Forum - 10-10-2008, 09:54 AM
Same tasks in each controller: controller inheritance? - by El Forum - 10-11-2008, 01:26 AM
Same tasks in each controller: controller inheritance? - by El Forum - 10-11-2008, 03:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB