Welcome Guest, Not a member yet? Register   Sign In
Don't Repeat Yourself in CI doesn't exist
#4

[eluser]johnwbaxter[/eluser]
@crimp - I see what you did there...

@gh0st - Let me answer a couple of your questions. With regards to the auth check having to be in every controller, that is not quite true. You could do a couple of things here, first you could create a hook that ran before the controller runs that does your auth check - http://ellislab.com/codeigniter/user-gui...hooks.html

That only needs to be written once. Secondly you could Extend the Core controller which you would put your auth code in and then all your other controllers would extend your customised parent controller - http://ellislab.com/codeigniter/user-gui...asses.html

Your other questions are architectural really. You could write your own code and way of including libs relying on some logic or other. At the end of the day you can do what you want to do. Codeigniter does not stand in your way.

Finally with regards to HMVC and ORM being bundled, i agree with you to a certain extent. Why can't they be included as optional additions to CI, you only load them if you need them like other libs and stuff. I simply think that at the moment EE doesn't use ORM so CI does not have ORM. However, there are some excellent user contributed HMVC offerings and also some great ORM offerings, i know they're not supported by CI and that is an issue but they're there so why not use them?!

Top rant though.


Messages In This Thread
Don't Repeat Yourself in CI doesn't exist - by El Forum - 02-24-2009, 01:46 AM
Don't Repeat Yourself in CI doesn't exist - by El Forum - 02-24-2009, 02:05 AM
Don't Repeat Yourself in CI doesn't exist - by El Forum - 02-24-2009, 02:46 AM
Don't Repeat Yourself in CI doesn't exist - by El Forum - 02-24-2009, 02:54 AM
Don't Repeat Yourself in CI doesn't exist - by El Forum - 02-24-2009, 03:11 AM
Don't Repeat Yourself in CI doesn't exist - by El Forum - 02-24-2009, 03:35 AM
Don't Repeat Yourself in CI doesn't exist - by El Forum - 02-24-2009, 05:29 AM
Don't Repeat Yourself in CI doesn't exist - by El Forum - 02-24-2009, 05:45 AM
Don't Repeat Yourself in CI doesn't exist - by El Forum - 02-24-2009, 06:52 AM
Don't Repeat Yourself in CI doesn't exist - by El Forum - 02-24-2009, 07:01 AM
Don't Repeat Yourself in CI doesn't exist - by El Forum - 02-24-2009, 07:30 AM
Don't Repeat Yourself in CI doesn't exist - by El Forum - 02-24-2009, 07:41 AM
Don't Repeat Yourself in CI doesn't exist - by El Forum - 02-24-2009, 09:29 AM
Don't Repeat Yourself in CI doesn't exist - by El Forum - 02-25-2009, 07:16 AM
Don't Repeat Yourself in CI doesn't exist - by El Forum - 02-25-2009, 07:50 AM
Don't Repeat Yourself in CI doesn't exist - by El Forum - 03-26-2009, 03:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB