Wiki articles in category Tips

Showing 41-60 of 162 items.

FORM with GET method causes repeated stacking of URL Parameters

Created 11 years ago by Kartik V Kartik V, updated 11 years ago by toph 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: 64 416 times
Version: all
Category: Tips

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

Created 11 years ago by Kartik V Kartik V, updated 10 years ago by Kartik V 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.

15 4
46 followers
Viewed: 186 450 times
Version: 2.0
Category: Tips

Activating Bootstrap 3 Tooltips & Popover for your Yii Site.

Created 11 years ago by Kartik V Kartik V, updated 7 years ago by alrazi 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: 68 187 times
Version: 2.0
Category: Tips

Yii2 default values for Index data Provider

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

Guys,

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

Update Gridview with Dropdown Selection

Created 11 years ago by lgastmans lgastmans, updated 11 years ago by lgastmans 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: 18 050 times
Version: 1.1
Category: Tips

Auto-update denormalized attributes with MongoDb and Yii2

Created 11 years ago by edoardo849 edoardo849, updated 11 years ago by CeBe 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: 19 615 times
Version: 2.0
Category: Tips

CGridView customized CCheckBoxColumn

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

Hi friends,

3 0
6 followers
Viewed: 21 119 times
Version: 1.1
Category: Tips

Yiistrap TbHtml::navbarSearchForm

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

Hi all,

0 0
3 followers
Viewed: 20 752 times
Version: 1.1
Category: Tips

Set a menu - reusable code

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

Rendering Views and Updating them with Ajax

Created 11 years ago by Manish Gupta Manish Gupta, updated 11 years ago by Manish Gupta 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: 29 841 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) Kostas Apazidis (KonApaz), updated 11 years ago by Rohit Suthar Rohit Suthar.
2 0
5 followers
Viewed: 43 037 times
Version: 1.1
Category: Tips

Multi Data Provider

Created 11 years ago by Sharon Lavie Sharon Lavie, updated 9 years ago by Sharon Lavie 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: 19 833 times
Version: 1.1
Category: Tips

New Relic Error Alert with Yii

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

Introduction

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

Create thermometer using rgraph

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

Hi friends,

2 0
4 followers
Viewed: 13 855 times
Version: Unknown (update)
Category: Tips
1 0
6 followers
Viewed: 66 015 times
Version: 1.1
Category: Tips

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

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

Useful Multilanguage extensions collection and use.

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

What I want to achieve:

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

Cgridview counter column

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

some times we want to show the serialNo on cgridview .

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

How to preload dropdowns in CForm

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

How to Display tooltp(qtip) on CGridview dynamic

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

Hi Friends,

0 0
4 followers
Viewed: 17 548 times
Version: Unknown (update)
Category: Tips