Hi,
I’m writing a small website (with restful authentication users) with a
frontend and an administration.
Wich is the best practice ?
-
running 2 separate application (frontend and admin) sharing the same
DB
-
mixing admin and frontend but how can I use 2 istance of restful
authentication for frontend users and administrative users
thanks
Simone.
Simone R. wrote:
I’m writing a small website (with restful authentication users) with a
frontend and an administration.
Wich is the best practice ?
- running 2 separate application (frontend and admin) sharing the same
DB
Given you say this is a small application this seems like overkill.
- mixing admin and frontend but how can I use 2 istance of restful
authentication for frontend users and administrative users
On one of my own smallish applications I’m using role_requirement to
dynamically expose administrative features using the same set of view
templates as the regular non-administrative users. For small websites
this technique has worked out amazingly well for me.
For more complex applications I might consider namespaced templates for
administration, but so far I haven’t needed to do that.