Model View Controller Layout of MirrorMed

From MirrorMed

MirrorMed uses a Model View Controller (MVC) layout. You can read more about the Model View Controller Architecture but its really more important to understand how they work in MirrorMed.

The MirrorMed MVC is handled by Celini

All of the MVC code lives under the local directory of MirrorMed.

/mirrormed/local/

Generally the controllers create the logic between different pages of MirrorMed. It handles the Get and Post logic of MirrorMed. You can read more about them in Celini Controllers

/mirrormed/local/controllers/

Generally the "model" portion of the MVC system is handled by Celini Ordos. Ordos are the object representations of things like patients, people, companies, etc etc. They handle persistence, saving data to and from the database.

/mirrormed/local/ordo/

The "View" portion of MirrorMed MVC is handled by Smarty Templates.

/mirrormed/local/templates/ 

Other helper php code live in lib and includes...

/mirrormed/local/lib/
/mirrormed/local/includes/

You generally find the installation, setup and any import scripts under the setup directory

/mirrormed/local/setup/

For information on the other main directories, besides /mirrormed/local/ please take a look at MirrorMed directory layout