Wiki articles in category How-tos

Showing 61-69 of 69 items.
Created 8 months ago by shiv, updated 8 months 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.

1 0
1 follower
Viewed: 9 826 times
Version: 2.0
Category: How-tos
Created 3 years ago by ThePr0f3550r, updated 6 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

2 1
10 followers
Viewed: 83 547 times
Version: 2.0
Category: How-tos
Created a year ago by Wade Shuler, updated 2 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: 14 622 times
Version: 2.0
Category: How-tos
Created 4 years ago by Antonio Ramirez, updated 2 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.

8 0
15 followers
Viewed: 63 315 times
Version: 2.0
Category: How-tos
Tags: pjax, widget, yii2
Created 2 months ago by Luis Armando, updated 2 months ago by Luis Armando.

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 src="https://static.techspot.com/fileshost/newspics3/2017/google-cloud-platform....

0 0
1 follower
Viewed: 1 752 times
Version: 2.0
Category: How-tos
Created 3 years ago by skworden, updated a month 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.

14 0
26 followers
Viewed: 159 103 times
Version: 2.0
Category: How-tos
Created a month ago by AndroideLP, updated a month 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:

3 0
3 followers
Viewed: 4 774 times
Version: 2.0
Category: How-tos
Created 4 years ago by Kartik V, updated a month 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: 36 569 times
Version: 2.0
Category: How-tos
Created 15 days ago by hehbhehb, updated 15 days ago by hehbhehb.

pjax gridview delete button issue

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.

0 0
1 follower
Viewed: 608 times
Version: 2.0
Category: How-tos