A Model-View-Controller perspective of Elgg

This section provides an overview of Elgg through the lens of the MVC pattern.


It all starts with a request. The most common scenario is a web browser requesting an HTML page. Let's assume it is a request for the web page that displays Joe's latest vacation photos. The request arrives at the controller. The controller confirms that Joe exists as a user at the site. It tells the model to increment the view counter on the photo album. The controller then passes the album identifier over to the view for rendering. The view pulls the photo objects from the model and creates the HTML page that is sent to the web browser.


Elgg uses the Front Controller pattern with a twist. In the Front Controller ...

Get Elgg 1.8 Social Networking now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.