Wiki articles in category Tips

Showing 41-60 of 162 items.

FORM with GET method causes repeated stacking of URL Parameters

Created 10 years ago by Kartik V, updated 10 years ago by toph.

// In Yii 1.x $form = $this->beginWidget('CActiveForm', [

'id' => 'order-search-form',
'method' => 'get',

]); echo $form->textInput($searchModel, 'id'); echo CHtml::submitButton('Find', ['class' => 'btn btn-primary']); $this->endWidget(); `

7 2
41 followers
Viewed: 62 805 times
Version: all
Category: Tips

Yii 2 list of path aliases available with default basic and advanced app.

Created 10 years ago by Kartik V, updated 9 years ago by Kartik V.

If you are coming over from Yii 1.x to Yii 2, and already read this guide, you may note that namespaces are very important in Yii 2 to identify classes. But do you know the list of seeded path aliases that come shipped with a basic or advanced app? Here is my attempt to list them.

14 4
46 followers
Viewed: 183 491 times
Version: 2.0
Category: Tips

Activating Bootstrap 3 Tooltips & Popover for your Yii Site.

Created 10 years ago by Kartik V, updated 6 years ago by alrazi.

Step 1: Initialize the Bootstrap Tooltip & Popover plugins in your view layout file @web\views\layouts\main.php. Add this to somewhere in the beginning head section (after you have loaded the Jquery using your AppAsset or something similar).

3 3
48 followers
Viewed: 66 741 times
Version: 2.0
Category: Tips

Yii2 default values for Index data Provider

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

Guys,

2 0
5 followers
Viewed: 32 140 times
Version: 2.0
Category: Tips

Update Gridview with Dropdown Selection

Created 10 years ago by lgastmans, updated 10 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: 17 413 times
Version: 1.1
Category: Tips

Auto-update denormalized attributes with MongoDb and Yii2

Created 10 years ago by edoardo849, updated 10 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: 18 321 times
Version: 2.0
Category: Tips

CGridView customized CCheckBoxColumn

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

Hi friends,

3 0
6 followers
Viewed: 20 379 times
Version: 1.1
Category: Tips

Yiistrap TbHtml::navbarSearchForm

Created 11 years ago by Patrice, updated 10 years ago by CeBe.

Hi all,

0 0
3 followers
Viewed: 19 247 times
Version: 1.1
Category: Tips

Set a menu - reusable code

Created 11 years ago by Kostas Apazidis (KonApaz), updated 11 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: 11 719 times
Version: Unknown (update)
Category: Tips

Rendering Views and Updating them with Ajax

Created 11 years ago by Manish Gupta, updated 11 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: 28 731 times
Version: Unknown (update)
Category: Tips

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

Created 11 years ago by Kostas Apazidis (KonApaz), updated 10 years ago by Rohit Suthar.
2 0
5 followers
Viewed: 42 141 times
Version: 1.1
Category: Tips

Multi Data Provider

Created 11 years ago by Sharon Lavie, updated 8 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: 18 876 times
Version: 1.1
Category: Tips

New Relic Error Alert with Yii

Created 11 years ago by simon604, updated 9 years ago by razvanphp.

Introduction

2 0
4 followers
Viewed: 21 118 times
Version: 1.1
Category: Tips

Create thermometer using rgraph

Created 11 years ago by Ankit Modi, updated 10 years ago by Ankit Modi.

Hi friends,

2 0
4 followers
Viewed: 13 086 times
Version: Unknown (update)
Category: Tips
1 0
6 followers
Viewed: 65 000 times
Version: 1.1
Category: Tips

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

Created 11 years ago by Ankit Modi, updated 11 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: 41 814 times
Version: Unknown (update)
Category: Tips

Useful Multilanguage extensions collection and use.

Created 11 years ago by cihappy, updated 10 years ago by Rohit Suthar.

What I want to achieve:

2 0
3 followers
Viewed: 10 302 times
Version: 1.1
Category: Tips

Cgridview counter column

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

some times we want to show the serialNo on cgridview .

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

How to preload dropdowns in CForm

Created 11 years ago by transistor, updated 11 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: 12 300 times
Version: Unknown (update)
Category: Tips

How to Display tooltp(qtip) on CGridview dynamic

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

Hi Friends,

0 0
4 followers
Viewed: 16 491 times
Version: Unknown (update)
Category: Tips