Wiki articles tagged with "view"

Showing 1-8 of 8 items.

YII2 Pagination Options

Created 5 years ago by VivekYii, updated 5 years ago by VivekYii.

solution here If we are using default pagination option like

1 0
1 follower
Viewed: 13 842 times
Version: 2.0
Category: Tips

embedded javascript block in your view with IDE checking or intellisense

Created 5 years ago by yiqing95, updated 5 years ago by yiqing95.

this is my way for embed js code block in view file:

2 0
Viewed: 9 077 times
Version: 2.0
Category: Tips

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

Created 6 years ago by Kartik V, updated 5 years ago by Kartik V.

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](http://demos....

4 0
Viewed: 53 867 times
Version: 2.0
Category: Tutorials


Created 6 years ago by ezekielnoob, updated 6 years ago by ezekielnoob.

what i am going to introduce is a coding style that will result into a single page generated from different requests like in the example below this makes the specific request reusable instead of just an action being accessible to the controller in which the widgets are created

2 1
Viewed: 18 813 times
Version: Unknown (update)
Category: How-tos

Creating HTML code using Jamboree Panels

Created 7 years ago by bluyell, updated 7 years ago by bluyell.
2 0
Viewed: 13 060 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 901 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 362 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 813 times
Version: 1.1
Category: Tips
Tags: render, view