Wiki articles in category How-tos

Showing 61-70 of 70 items.
Created 4 years ago by ThePr0f3550r, updated 8 months ago by alrazi.

Creating a Dependent Dropdown From Scratch in Yii2

I have read http://www.yiiframework.com/wiki/24/creating-a-dependent-dropdown/ (Dependen Dropdown Yii1), but I can't implement it in Yii2 because Yii2 does not have built-in AJAX functionality hem.. I searched about it and came across this post

3 1
11 followers
Viewed: 87 944 times
Version: 2.0
Category: How-tos
Created a year ago by Wade Shuler, updated 4 months ago by CeBe.

How to make UrlManager createAbsoluteUrl work with sub-domains

Upon creating my Yii2 Members System, I have ran into a few snags along the way that forced me to extend and bend Yii2 to my will.

1 0
3 followers
Viewed: 16 556 times
Version: 2.0
Category: How-tos
Created 4 years ago by Antonio Ramirez, updated 4 months ago by CeBe.

How to use GridView with AJAX

With the adoption of PJax on Yii2 things  have change quite a bit with GridView when it comes to work with them in AJAX mode. It will probably be confusing at the beginning, but then you will soon realize how powerful the new approach is.

9 0
15 followers
Viewed: 65 073 times
Version: 2.0
Category: How-tos
Tags: pjax, widget, yii2
Created 3 years ago by skworden, updated 4 months ago by Yii3.

Render Form in popup via AJAX (Create and Update) with ajax validation & Also load any page via ajax Yii 2.0 (2.3)

There are a few issues with the other solutions I originally used that I found from other wikis. I address the issues I had in this much simpler and shorter way. I am also going to explain what is going into way more detail than others to help people understand what's going on.

15 0
26 followers
Viewed: 164 702 times
Version: 2.0
Category: How-tos
Created 4 months ago by AndroideLP, updated 4 months ago by samdark.

How to login from different tables in Yii2

The Problem: Yii2 utilizes by default UserIdentity configured in config/web.php for connection, this object appy one table to authentication ('identityClass' => 'app\painel\models\User'). How to authentication from diferent tables? Solution: Create instances in web.php to uses UserIdentify. eg:

4 0
4 followers
Viewed: 10 939 times
Version: 2.0
Category: How-tos
Created 4 years ago by Kartik V, updated 4 months ago by CeBe.

Override/Eliminate Bootstrap CSS/JS for Yii 2.0 widgets

An example of customizing the Yii GridView is mentioned here. You can easily override Bootstrap or other styling defaults by changing the GridView default options.

4 2
39 followers
Viewed: 37 850 times
Version: 2.0
Category: How-tos
Created 4 months ago by Luis Armando, updated 30 days ago by Maurizio Domba Cerin.

Use non Gmail/Gsuite on Gcloud projects

Small companies and startups use cheap email services or even Cpanel's mail services which are less secure and compete directly with bigger email providers like Microsoft with Outlook and Google with Gmail. This creates a problem when you try to use their services to send/receive emails from this cheap services. <img width="750" src="https://static.techspot.com/fileshost/newspics3/2017/google-clo...

0 0
2 followers
Viewed: 3 238 times
Version: 2.0
Category: How-tos
Created 3 months ago by hehbhehb, updated 21 days ago by CeBe.

Pjax GridView: refresh page after delete

Normally, after clicking the delete button in gridview, the record will be deleted and the page will refresh, but the page number in query string is lost. This is not always the case we expect.

3 0
2 followers
Viewed: 3 290 times
Version: 2.0
Category: How-tos
Created 5 days ago by CeBe, updated 5 days ago by CeBe.

Getting information from the current locale

Yii 2.0 comes with a formatter component to format dates, numbers, and other values for international users according to their locale. This is very useful for displaying data. When working with incoming data or when using enhanced input methods like the [MaskedInput widget](https://www.yiiframework.com/doc/api/2.0/yii-widgets-maskedinp...

2 0
1 follower
Viewed: 483 times
Version: 2.0
Category: How-tos
Created a month ago by Necip, updated 3 days ago by Necip.

An alternative way to ElasticSearch

This article is for those who have dealt with the complexity of Elasticsearch or any other indexing machines and are looking for an easier way to index the existing database without additional effort.

0 0
2 followers
Viewed: 1 559 times
Version: all
Category: How-tos