Wiki articles in category Tips

Showing 21-32 of 32 items.
Created 4 years ago by Kartik V, updated 4 years ago by Kartik V.

Key web server settings after installing a fresh Yii 2 basic or advanced app

So, you have installed a brand new Yii 2 app (basic) or (advanced). Here are a few tips for Apache web server users to get things running more secure and better with your yii2 app.

2 0
46 followers
Viewed: 18 993 times
Version: 2.0
Category: Tips
Created 3 years ago by johonunu, updated 3 years ago by johonunu.

Debuging variables in Yii2

This tutorial is explained following "basic" application structure.

2 1
6 followers
Viewed: 20 570 times
Version: 2.0
Category: Tips
Created 4 years ago by CTala, updated 4 years ago by CTala.

Yii2 default values for Index data Provider

Guys,

1 0
5 followers
Viewed: 22 953 times
Version: 2.0
Category: Tips
Created 4 years ago by Kartik V, updated 4 years ago by Kartik V.

Install specific Yii2 vendor extension & dependency without updating other packages.

The tips here are for advanced usages of composer and its assumed you have read about using composer and have a knowledge of your vendor packages to be updated. Let's consider, you want to update only one specific yii2 vendor library, without updating all the other extension packages?

2 3
39 followers
Viewed: 24 387 times
Version: 2.0
Category: Tips
Created 3 years ago by Scott_Huang, updated 3 years ago by Scott_Huang.

Easy way to redirect http:\\localhost\yii2-basic to http:\\localhost\yii2-basic\web\index.php

First of all, install yii2 basic template according below link:

1 0
5 followers
Viewed: 24 601 times
Version: 2.0
Category: Tips
Created 3 years ago by Misbahul D Munir, updated 3 years ago by Misbahul D Munir.

Create Form With DynamicModel

In yii2 we can create form without create FormModel. Here we go

2 0
7 followers
Viewed: 26 884 times
Version: 2.0
Category: Tips
Tags: form, model, yii2
Created 2 years ago by AlaFalaki, updated 2 years ago by AlaFalaki.

How to change GridView delete confirmation message for specific controllers only?

Hello,
If you want to give extra attention for some specific delete actions and you don't want to override whole yii.confirm JS method here is what you can do:
(I've only put the ActionColumn part of the GridView here to just give you the idea)

1 0
3 followers
Viewed: 27 204 times
Version: 2.0
Category: Tips
Created 4 years ago by Kartik V, updated 4 years ago by toph.

FORM with GET method causes repeated stacking of URL Parameters

// 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(); `

3 2
40 followers
Viewed: 38 578 times
Version: all
Category: Tips
Created 4 years ago by Kartik V, updated 9 months ago by alrazi.

Activating Bootstrap 3 Tooltips & Popover for your Yii Site.

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).

2 2
47 followers
Viewed: 47 545 times
Version: 2.0
Category: Tips
Created 7 years ago by qiang, updated 6 months ago by CeBe.

Adding Yii Search to Your Browser Search Box

The official Yii project site now supports OpenSearch. This means you can customize your browser's search box to enable direct search of the content in yiiframework.com. For example, by entering a Yii class name in the browser's search box, the corresponding class API page will be shown in the browser.

25 0
6 followers
Viewed: 48 127 times
Version: all
Category: Tips
Created 3 years ago by Scott_Huang, updated 3 years ago by Scott_Huang.

Step by step for how to full export Yii2 grid to excel

We will leverage Yii2-excelview widget. So, first of all is install Yii2-excelview:

0 0
5 followers
Viewed: 49 376 times
Version: 2.0
Category: Tips
Created 4 years ago by Kartik V, updated 3 years ago by Kartik V.

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

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.

10 3
47 followers
Viewed: 122 546 times
Version: 2.0
Category: Tips