Wiki articles in category Tips tagged with "view"

Showing 1-4 of 4 items.

YII2 Pagination Options

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

solution here If we are using default pagination option like

1 0
1 follower
Viewed: 21 220 times
Version: 2.0
Category: Tips

embedded javascript block in your view with IDE checking or intellisense

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

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

2 0
3 followers
Viewed: 15 769 times
Version: 2.0
Category: Tips

Update two models with one view

Created 14 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: 59 417 times
Version: 1.1
Category: Tips

Putting Function To Be Called In View

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