Wiki

Articles tagged with "view", sorted by date (updated)X
Displaying 1-7 of 7 result(s).

embedded javascript block in your view with IDE checking or intellisense

Updated 8 days ago by yiqing95Tips0 comments – viewed 987 times – ( +2 ) – version 2.0
this is my way for embed js code block in view file:

Relational data fields display and edit with the yii2-detail-view extension

Updated 3 months ago by Kartik VTutorials0 comments – viewed 2,278 times – ( +29 ) – version 2.0
If you have read this wiki you would be aware of the yii2-detail-view extension and how it offers you an easy way to EDIT and VIEW your model data, toggle these modes, and other features. You can read the extension documentation and/or view a demo of this extension, to understand usage.

Yii HMVC

Updated about a year ago by ezekielnoobHow-tos6 comments – viewed 7,096 times – ( +5 / -1 )
Right now we can use widgets + action provider like in this tutorial: How to use a Widget as an Action Provider

Creating HTML code using Jamboree Panels

Updated about a year ago by bluyellTutorials0 comments – viewed 7,192 times – ( +2 / -2 ) – version 1.1

Update two models with one view

Updated 2 years ago by SebKTips11 comments – viewed 31,495 times – ( +10 / -2 ) – version 1.1
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

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

Updated 2 years ago by c@cbaHow-tos3 comments – viewed 9,236 times – ( +9 ) – version 1.1
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.

Putting Function To Be Called In View

Updated 3 years ago by junxiongTips2 comments – viewed 24,192 times – ( +6 / -1 ) – version 1.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