Skip to main content
Known Participant
July 14, 2011
Question

Backend in specific folder

  • July 14, 2011
  • 1 reply
  • 451 views

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!

This topic has been closed for replies.

1 reply

Owainnorth
Inspiring
July 14, 2011

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.