Skip to content

Instantly share code, notes, and snippets.

View popovserhii's full-sized avatar

Serhii Popov popovserhii

View GitHub Profile
@popovserhii
popovserhii / 1. Application.md
Created November 28, 2012 08:22 — forked from juriansluiman/1. Application.md
Modular application system for ZF2

Application system

This document describes how a system can be formed to set up modules in combination with a tree of pages stored in the database. The general idea is to have pages stored within a database in a tree structure, where every page is coupled to a module (1:n). Pages are queried and parsed to routes as a combination of the page route and the modules route(s).

Goal

Webapplications exist often with a frontend (for normal visitors) and backend (to manage the whole bunch). Also some pages might want to utilize the same module (two simple text pages as basic example). Thirdly, it should be easy for end users to create new pages, modify them or delete pages. To accomplish this, a robust system ("content management framework") should be made on top of zf2 to accomodate this.

Configuration