Cymen's Blog

ASP.NET MVC for PHP Programmers

leave a comment

Routes are rewrite rules with the “object defaults” part of the routes being similar to the variables parsed out of the URL via mod_rewrite (but they the “object defaults” can store values from other sources so the routes are somewhat like a data store).

ViewData[] is similar to a global variable in PHP and it is populated by the Controllers and seen by the Models.

Lots of differences of course but just a quick thought…

Written by Cymen

February 22nd, 2010 at 5:37 pm

Leave a Reply