Wiki articles tagged with "view"

Showing 1-4 of 4 items.

Creating HTML code using Jamboree Panels

Created 7 years ago by bluyell, updated 7 years ago by bluyell.
2 0
Viewed: 13 057 times
Version: 1.1
Category: Tutorials

How to extend CFormatter, add i18n support to booleanFormat and use it in CDetailView

Created 8 years ago by c@cba, updated 8 years ago by c@cba.

As you know, the CDetailView widget displays details of a single model. If no formatting is specified, boolean values that are stored in the database as 0 and 1, are represented in the detail view as 0 and 1. If formatted as boolean, they are represented as 'No' and 'Yes'. We want to add i18n support, so that Yes and No appear in the current language.

9 0
Viewed: 15 897 times
Version: 1.1
Category: How-tos

Update two models with one view

Created 8 years ago by sensorario, updated 8 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 2
Viewed: 48 358 times
Version: 1.1
Category: Tips

Putting Function To Be Called In View

Created 9 years ago by junxiong, updated 9 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
Viewed: 44 807 times
Version: 1.1
Category: Tips
Tags: render, view