Wiki

Articles tagged with "view"X
Displaying 1-4 of 4 result(s).

Creating HTML code using Jamboree Panels

Created 4 months ago by bluyellTutorials0 comments – viewed 4,408 times – ( +2 )

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

Created about a year ago by c@cbaHow-tos2 comments – viewed 5,425 times – ( +9 )
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.

Update two models with one view

Created about a year ago by sensorarioTips10 comments – viewed 18,673 times – ( +10 / -2 )
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).
tags: database, model, view, form

Putting Function To Be Called In View

Created 2 years ago by junxiongTips2 comments – viewed 14,024 times – ( +4 / -1 )
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:
tags: view, render