Code Search for Developers
 
 
  

mvc.html from Brim at Krugle


Show mvc.html syntax highlighted

<html>
<head>
	<title>Brim - MVC</title>
</head>

<body>
<h2>Model View Controller (MVC or Model II)</h2>
<p>
The main goal of using the MVC pattern is to display the display logic (the view/gui) from the business-logic/data (the processing part). These two parts are 'kept together' via the controller. 
</p>
<p>
As mentioned here: '<a href="http://c2.com/cgi/wiki?ModelViewController">[c2.com]</a>' 
</p>
<ul>
<li>A model, therefore is an object representing data or even activity, e.g. a database table or even some plant-floor production-machine process. </li>
<li>A view is some form of visualization of the state of the model. </li>
<li>A controller offers facilities to change the state of the model. </li>
</ul>

<p>
In Brim, there is <em>NO DIRECT</em> link between the model and the view, ALL communication must pass via the controller. 
</p>
<p>
The Model in based around items with a <em>potential</em> hierachical relationship (see <a href="pics/design.png">high level class diagram</a>). The Item is an object that represents data in the database. The Services class that goes along with the Item provides the logic to add/update/delete items etc. Furthermore there is typically a Factory class that knows how to create an item from either a database resultset or an HTTP request 
</p>
<p>
The model is object-oriented 
</p>
<p>
The view contains the display logic of certain items and is procedural... it mainly contains the template files or helping classes that knows how to render trees etc. 
</p>
<p>
The controller is the glue between the model and the view. It gives the view all the information it needs to display, checks whether certain actions may be performed etc.
</p>
<p>
<img src="pics/mvc.gif" />
</p>




See more files for this project here

Brim

BRIM is a MVC framework, written in PHP and based on items with a hierarchical relationship. The list of plugins make BRIM a Information Manager with plugins like bookmarks, a calendar, contacts tasks, notes, RSS etc. The application is multilingual.

Project homepage: http://sourceforge.net/projects/brim
Programming language(s): JavaScript,PHP,SQL
License: other

  css/
    brim.css
    index.php
  pics/
    background.jpg
    design.png
    feet_booby.jpg
    index.php
    mvc.gif
    question_booby.gif
    question_booby.jpg
    shadow.gif
    shadow2.gif
    shadowAlpha.png
    sleeping_booby.jpg
    treeback.jpg
    white_boobies.jpg
  booby2brim_changes.txt
  changelog.txt
  coding_conventions.html
  contributions.html
  design.html
  directory_structure.html
  faq.html
  gpl.html
  how_to_enable_calendar_reminders_per_email.html
  how_to_enable_calendar_reminders_per_email.txt
  how_to_write_a_template.html
  how_to_write_a_template.txt
  index.php
  installation_guide.html
  mvc.html
  security.html
  todo.txt
  uninstall.html
  upgrade_guide.html
  used_versions.txt
  which_package.html