Title: RE: Ses and an Admin folder
Thread: Ses and an Admin folder
Forum: Need Help?
Conference: ColdBox
User: lmajano HI,
A key importance on this is if you want to have a separate application
for the admin, or if you want to have one application with multiple parts. My
preference is to have one application with multiple parts, these parts being
packaged into directories within handlers/layouts and views. That way, I have
one application with multiple sub-applications. Now, to do security you use the
security interceptor to protect the events according to your own security rules.
Then you can use the ses interceptor to create aliases via the custom routes to
your sub-aplications or sections.
Remember that the ses interceptor parses
the url according to its rules, if it finds a match, it will process it. If you
want to have a separate application, then well, then you have a separate
application that does not conflict with the main one.
+handlers
--+admin
--pages.cfc
--+cms.cfc
--+whatever.cfc
As you can see from above, you
can package functionality into directories. Then you can protect these events
via the security interceptor. No need to create an admin application, unless it
will live somewhere else.
So a route can looke like:
index.cfm/admin.pages/list
PS: the blogcfc sample app, was just a
port and its not a best practice application.
http://forums.coldboxframework.com/index.cfm?event=ehMessages.dspMessages&threadid=ED15E4C0-FF6E-E829-9A990AD1DC553F04