Wiki articles in category Tips tagged with "view"

Showing 1-2 of 2 items.

Update two models with one view

Created 12 years ago by sensorario, updated 11 years ago by SebK.

Suppose to have two models: Users and Emails. You do not want to store email in a Users model. And User can have 0 or many emails. This is the form generated to create a new user (just username).

9 3
13 followers
Viewed: 55 432 times
Version: 1.1
Category: Tips

Putting Function To Be Called In View

Created 13 years ago by junxiong, updated 13 years ago by junxiong.

Sometimes we need some complicated view to be displayed (such as generating complicated table). Most people suggest that in MVC the View must be as simple as possible (don't have too much loops, etc). So what we have to do is to hide away the complex code by putting it at somewhere else. The following are few places options to keep the function:

5 1
5 followers
Viewed: 51 805 times
Version: 1.1
Category: Tips
Tags: render, view