Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Backend in specific folder

New Here ,
Jul 14, 2011 Jul 14, 2011

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!

TOPICS
Getting started
427
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jul 14, 2011 Jul 14, 2011
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources