Copy link to clipboard
Copied
Hello,
I'd like to put all the files related to backend administration in one folder ('admin/').
Is there a way to Dry up the code, so to have all the checks "are you authenticated?" within one application.cfc file?
Should it be within the root application.cfc file, or should I put one in the admin/ folder?
Thanks!
Copy link to clipboard
Copied
Yup, just put an Application.cfc in the /admin folder that checks authorisation. You can make it extend your base Application.cfc as well if there's stuff in there you need.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more