Skip to content

02. How TightMVC handles it?

stinger edited this page Nov 17, 2010 · 1 revision

TightMVC handles the MVC pattern by imlementing a dispatcher. The dispatcher loads controllers, models, views and helpers depending of the address.

The framework first parses the URL and looks for existing Controller. If there is no controller matching the provided URL it displays 404 page.

After the controller has been loaded the framework looks for existing action inside the controller. Non existing action calls also end up with 404 page.

This gives you the ability to follow the HTTP protocol specifications answering with HTTP 404 statuses to non-existing URLs.