Welcome Guest, Not a member yet? Register   Sign In
Writing Admin/User/Public controllers to insure authentication
#19

(01-05-2015, 01:50 PM)sneakyimp Wrote:
(01-02-2015, 06:44 PM)includebeer Wrote: That is why constants were invented! Wink
Not exactly. Constants were invented to contain constant values. Like pi (3.14159265358979323846) or e (2.71828182845904523536).

Constants were invented to contain a value that doesn't change during the execution. It doesn't need to be something like PI ! Anyway all projects are different and not all projects are super complex with tons of other developers.

Also, the argument was:

Quote:Personally, I have a lot of controllers, and I don't want to have to change every file which extends Admin_Controller or Front_Controller just because the file containing that class moves to a new location or the name of the file changes for some reason.
...that's why I talked about constants. I never said constants were better than autoloaders!
Reply


Messages In This Thread
RE: Writing Admin/User/Public controllers to insure authentication - by includebeer - 01-05-2015, 06:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB