Wiki

Articles in category "tips", sorted by date (updated)X
Displaying 31-40 of 148 result(s).

View a related field in CGridView

Updated 10 months ago by rafaelt88Tips1 comment – viewed 5,043 times – ( +6 ) – version 1.1
Generally we need to show one or more fields from a model that is related to another model used in CGridView. For our case we will use two related models, which explain how to use model "A" fields in a CGridView that used model "B".

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

Updated 11 months ago by Kartik VTips2 comments – viewed 6,472 times – ( +44 ) – version 2.0
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.

Model validation for field ranges using yii2-field-range extension

Updated 11 months ago by Kartik VTips0 comments – viewed 4,901 times – ( +36 ) – version 2.0
The yii2-field-range extension enables you to easily setup ActiveField range fields with Bootstrap styling. You basically can setup two attributes joined together like a single field with combined validation error block.

Make an ajax request to another server using JSONP

Updated 11 months ago by Kostas Apazidis (KonApaz)Tips0 comments – viewed 4,121 times – ( +1 ) – version 1.1
There are cases that you want to make an ajax request to another server and get the results.

Create URL to language switcher anchor with langhandler

Updated 11 months ago by Anas AbuDayahTips2 comments – viewed 2,278 times – ( +1 / -1 ) – version 1.1
This topic is related with langhandler extension

How to change the confirmation message on admingridview button and call a ajax..Dynamic

Updated 11 months ago by yiimTips0 comments – viewed 10,391 times – ( +3 ) – version 1.1
Hi Friends,

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

Updated 12 months ago by Kartik VTips0 comments – viewed 4,222 times – ( +38 / -5 ) – version 2.0
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?

Locking your Yii 2 project package versions with composer.lock

Updated 12 months ago by Kartik VTips0 comments – viewed 2,248 times – ( +36 / -4 ) – version 2.0
Ok, you have installed a Yii 2 basic or advanced app for the first time and completed the post install steps. You have picked up a few extensions to install for the first time as well. You would already see a composer.lock file in your application root folder.

My Own Components Folder in Yii2

Updated 12 months ago by CTalaTips0 comments – viewed 4,596 times – ( +3 / -2 ) – version 2.0
In Yii1 I used to have my own components under the components folder of the structure, now with namespacing this is a little bit different.

FORM with GET method causes repeated stacking of URL Parameters

Updated 12 months ago by tophTips2 comments – viewed 6,705 times – ( +39 / -4 ) – version all
You are using an ActiveForm in yii (both v1.x or 2), with a GET method like below: