Wiki articles in category Tips

Showing 41-60 of 158 items.

Update Gridview with Dropdown Selection

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

I recently worked on updating the content of a gridview based on the selection of a dropdown menu. I thought I should share it in the forum...

0 0
4 followers
Viewed: 13 462 times
Version: 1.1
Category: Tips

Auto-update denormalized attributes with MongoDb and Yii2

Created 5 years ago by edoardo849, updated 5 years ago by CeBe.

You have different collections in MongoDb with de-normalized attributes. As you may know, due to its not-join nature, MongoDb tends to encourage repetition of the same value in different collections (de-normalization). In this MongoDb is opposed to a more SQL-like approach where you usually reference only the ID of the value with a foreign key.

1 0
3 followers
Viewed: 12 517 times
Version: 2.0
Category: Tips

CGridView customized CCheckBoxColumn

Created 5 years ago by chandran, updated 5 years ago by CeBe.

Hi friends,

3 0
6 followers
Viewed: 16 276 times
Version: 1.1
Category: Tips

Yiistrap TbHtml::navbarSearchForm

Created 6 years ago by Patrice, updated 5 years ago by CeBe.

Hi all,

0 0
3 followers
Viewed: 12 468 times
Version: 1.1
Category: Tips

Set a menu - reusable code

Created 6 years ago by Kostas Apazidis (KonApaz), updated 6 years ago by Kostas Apazidis (KonApaz).

As we know Using crud generator creates menu items in view files (for each view file have a varius menu items)

1 0
3 followers
Viewed: 8 887 times
Version: Unknown (update)
Category: Tips

Rendering Views and Updating them with Ajax

Created 6 years ago by Manish Gupta, updated 6 years ago by Manish Gupta.

I wanted to implement a widget that could refresh itself through Ajax without refreshing the whole page. CGridView and CListView are excellent examples of such widgets.

1 0
7 followers
Viewed: 23 693 times
Version: Unknown (update)
Category: Tips

Custom column in TbGridView with icon by condition, find out icon class glyphicons easy (YiiBooster)

Created 6 years ago by Kostas Apazidis (KonApaz), updated 5 years ago by Rohit Suthar.
2 0
5 followers
Viewed: 35 073 times
Version: 1.1
Category: Tips

Multi Data Provider

Created 6 years ago by Sharon Lavie, updated 3 years ago by Sharon Lavie.

Lately, i needed to deal with the following scenario: read from two databases (db1,db2), and write to a third database (db3).

1 0
4 followers
Viewed: 12 814 times
Version: 1.1
Category: Tips

New Relic Error Alert with Yii

Created 6 years ago by simon604, updated 4 years ago by razvanphp.

Introduction

2 0
4 followers
Viewed: 17 708 times
Version: 1.1
Category: Tips

Create thermometer using rgraph

Created 6 years ago by Ankit Modi, updated 5 years ago by Ankit Modi.

Hi friends,

2 0
4 followers
Viewed: 9 630 times
Version: Unknown (update)
Category: Tips
1 0
6 followers
Viewed: 22 702 times
Version: 1.1
Category: Tips

How to call a default layout for every module and how to work <php echo $content; ?>

Created 6 years ago by Ankit Modi, updated 6 years ago by Ankit Modi.

Hi Friends, Hi Friends, Some common question is difficult to how to create the layout on yii and how to work

0 0
1 follower
Viewed: 33 771 times
Version: Unknown (update)
Category: Tips

Useful Multilanguage extensions collection and use.

Created 6 years ago by cihappy, updated 5 years ago by Rohit Suthar.

What I want to achieve:

2 0
3 followers
Viewed: 7 795 times
Version: 1.1
Category: Tips

Cgridview counter column

Created 6 years ago by Nisanth thulasi, updated 6 years ago by trond.

some times we want to show the serialNo on cgridview .

4 0
8 followers
Viewed: 8 386 times
Version: Unknown (update)
Category: Tips

How to preload dropdowns in CForm

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

So you want to use CForm (form builder), but need to preload dropdowns in a form? It's simpler than it seems.
You got your CFormModel, CForm and the actual Form, right?
Let's say you have the typical State -> City dependent dropdowns, so you would want to load the from with the State and City selected.

1 0
2 followers
Viewed: 9 075 times
Version: Unknown (update)
Category: Tips

How to Display tooltp(qtip) on CGridview dynamic

Created 6 years ago by Ankit Modi, updated 6 years ago by softark.

Hi Friends,

0 0
4 followers
Viewed: 11 968 times
Version: Unknown (update)
Category: Tips

Customizing the CMenu Widget

Created 6 years ago by mistryb, updated 5 years ago by mistryb.

The CMenu class provides some useful features for generating menus in your web application.

1 0
4 followers
Viewed: 60 534 times
Version: 1.1
Category: Tips

Search a file size range in CGridView

Created 6 years ago by CrazyCat, updated 6 years ago by CrazyCat.
  1. Create an Active Record Behavior that builds the criteria for the search() method and attach it to your model
  2. Modify the search() method of the model to merge the behavior's criteria in with the rest of the searchable attributes
2 0
2 followers
Viewed: 9 115 times
Version: Unknown (update)
Category: Tips

More on SSE and Yii

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

This is not actually Yii involved.

1 0
1 follower
Viewed: 7 271 times
Version: Unknown (update)
Category: Tips

Inline views, write less

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

Sometimes writing views like

3 0
3 followers
Viewed: 8 945 times
Version: Unknown (update)
Category: Tips