Having a custom application build on a Web Application Framework doesn't necessarily rule out the need for basic CMS functionality. Allowing the administrator to create and manage custom pages (for example for
business hours) is quite common. And allowing the administrator to be able to configure who can access which custom page isn't something only for typical CMS'es. For example, a
business hours page might be accessible for everyone, but a page informing customers of upcoming price changes should only be accessible for paying customers.
This post describes how to add this functionality to our two frameworks of choice: the Ruby based Ruby on Rails and the PHP based Symfony 2. For both of these frameworks we explain how to CRUD (Create Read Update Delete) the page and how to add authorization.