I have an application and I am using the MVC architecture. I have a main controller that reads an application controller which decides the view etc.

As far as static content goes, what would be the best way to include and link to that? Should it be a view or should I bypass the front controller and just hit the static page.

    Depends. If you don't care about "managing" the URL and want top performance, let the web server return the static page. But if you're using templating and your static content is only part of the whole page, or you're using clean URLs, then have the view return the static content.

    It also depends on your style. In general I'm strict with my coding, so if I go MVC I say take it all the way and have a view return the static content.

      Write a Reply...