Making your views stupid

Matt Button (08.Oct.2011 at 15:20)
Talk at PHP North West 2011 (English - UK)

Rating: 4 of 5

When it comes to Models and Controllers, the general consensus is to make your Models fat and keep your Controllers skinny. However, when it comes to fit your views into this philosophy you usually end up moving presentation logic into your Models, or adding lots of inline code to your Views.

Most template languages try to “solve” this by creating an alternate php-esque syntax which attempts to keep logic out of views at the expense of fattening your controller.

This talk uses Mustache to introduce the concept of View-classes, as a way to separate business and presentation logic, without sacrificing your controllers.

Who are you?

Claim talk

By clicking this button you are declaring that you are the speaker responsible for it and a claim request will be sent to the administrator of the event.

If the claim is approved you will be able to edit the information for this talk.

Are you sure?

 
Comments closed.

Comments

Rating: 5 of 5

08.Oct.2011 at 17:02 by Anonymous

where are the slides? can't see the link

Rating: 5 of 5

08.Oct.2011 at 22:19 by Anonymous

Good talk!

Rating: 4 of 5

11.Oct.2011 at 08:42 by matthew mcconnell

A good talk, shame about having to rush it abit!

Rating: 3 of 5

15.Oct.2011 at 09:28 by Mark Jones

Interesting talk but perhaps a 15 min unconference talk wasn't the best format. Having never heard of Mustache before I was left still not completely sure of how to use them or their advantages over other systems.

However, the talk interested me enough to want to look into the topic more so it wasn't all bad.

Cloud server hosting by Combell Combell      © Joind.in 2012