MVC/MVVM Annotations Framework

This example page shows features associated with the lightweight framework that is capable of organizing applications using either the MVC or MVVM development approach.

Click to View Examples

Controllers

Responds to requests via actions that are responsible for tying specific models, view models, and views together.

Simple Controller Example

Models

Captures functionality that is typically a set of methods that interact closely with actions, repositories, or services.

Default Model Binding Example

Views

Houses a collection of presentation focused templates that provide the controller with a way of expressing output.

Action Views Example

ViewModels

Ties data closely to the view by binding view model data into special placeholders that make displaying data easier.

ViewModel Binding Example

Annotations

Extends phpdoc metadata to do behind the scenes work such as automatic class inclusion or decorating data bound properties.

Defining Annotations

Bundles

Defines css and javascript definitions that can be reused within views to add additional styles or functions not defined in layouts.

Defining Bundles

Aliases

Creates a way to "fancify" urls by allowing controller action endpoints to be rewritten in a more human readable (and SEO friendly) way.

Defining Aliases

Routing

Works in conjunction with controller actions to seamlessly bind action parameters to the logical hierarchy of urls.

Defining Routes