Wiki articles in category How-tos

Showing 61-71 of 71 items.
Created a year ago by shiv, updated a year ago by shiv.

How to get SEO friendly URL using Model and new getUrl() function

We all need SEO friendly URLs for our projects. its not always good to call route with params so we can generalise it for all models using a common function.

2 0
1 follower
Viewed: 12 997 times
Version: 2.0
Category: How-tos
Created 4 years ago by ThePr0f3550r, updated 10 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: 90 934 times
Version: 2.0
Category: How-tos
Created a year ago by Wade Shuler, updated 6 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: 17 491 times
Version: 2.0
Category: How-tos
Created 4 years ago by Antonio Ramirez, updated 6 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: 66 204 times
Version: 2.0
Category: How-tos
Tags: pjax, widget, yii2
Created 3 years ago by skworden, updated 6 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.

16 0
26 followers
Viewed: 168 001 times
Version: 2.0
Category: How-tos
Created 6 months ago by AndroideLP, updated 6 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: 13 929 times
Version: 2.0
Category: How-tos
Created 4 years ago by Kartik V, updated 6 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: 38 861 times
Version: 2.0
Category: How-tos
Created 6 months ago by Luis Armando, updated 3 months 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: 4 302 times
Version: 2.0
Category: How-tos
Created 5 months ago by hehbhehb, updated 2 months 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.

5 0
2 followers
Viewed: 6 025 times
Version: 2.0
Category: How-tos
Created 2 months ago by CeBe, updated 2 months 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...

5 0
2 followers
Viewed: 1 689 times
Version: 2.0
Category: How-tos
Created 3 months ago by Necip, updated 2 months 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.

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