Wiki articles tagged with "view"

Showing 1-10 of 10 items.

How to add Schema.org markup to Yii2 pages

Created 5 years ago by Gabriel A. López López Gabriel A. López López, updated 5 years ago by Gabriel A. López López Gabriel A. López López.

https://schema.org is a markup system that allows to embed structured data on their web pages for use by search engines and other applications. Let's see how to add Schema.org to our pages on Yii2 based websites using JSON-LD.

2 0
3 followers
Viewed: 92 698 times
Version: 2.0
Category: How-tos

How to add Open Graph and Twitter Card tags to Yii2 website.

Created 5 years ago by Gabriel A. López López Gabriel A. López López.

OpenGraph and Twitter Cards are two metadata sets that allow to describe web pages and make it more understandable for Facebook and Twitter respectively.

2 0
3 followers
Viewed: 94 883 times
Version: 2.0
Category: How-tos

YII2 Pagination Options

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

solution here If we are using default pagination option like

1 0
1 follower
Viewed: 20 110 times
Version: 2.0
Category: Tips

embedded javascript block in your view with IDE checking or intellisense

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

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

2 0
3 followers
Viewed: 14 733 times
Version: 2.0
Category: Tips

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

Created 11 years ago by Kartik V Kartik V, updated 11 years ago by Kartik V 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
41 followers
Viewed: 66 338 times
Version: 2.0
Category: Tutorials

Yii HMVC

Created 12 years ago by ezekielnoob ezekielnoob, updated 12 years ago by ezekielnoob 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
10 followers
Viewed: 33 385 times
Version: Unknown (update)
Category: How-tos

Creating HTML code using Jamboree Panels

Created 12 years ago by bluyell bluyell, updated 12 years ago by bluyell bluyell.
2 0
2 followers
Viewed: 18 173 times
Version: 1.1
Category: Tutorials

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

Created 13 years ago by c@cba c@cba, updated 13 years ago by c@cba 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
9 followers
Viewed: 21 072 times
Version: 1.1
Category: How-tos

Update two models with one view

Created 13 years ago by sensorario sensorario, updated 13 years ago by SebK 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: 57 701 times
Version: 1.1
Category: Tips

Putting Function To Be Called In View

Created 14 years ago by junxiong junxiong, updated 14 years ago by junxiong 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: 53 360 times
Version: 1.1
Category: Tips
Tags: render, view