Access view methods in your models.