Wiki articles in category How-tos

Showing 61-80 of 80 items.

How to send email via Gmail SMTP in Yii2 framework

Created 3 years ago by Bartosz Wójcik, updated 3 years ago by Bartosz Wójcik.

One of my sites has been flooded with spam bots and as a result - Gmail gave my mailing domain a bad score and I couldn't send emails to @gmail addresses anymore, not from my email, not from my system, not from any of other domains and websites I host...

3 1
4 followers
Viewed: 100 137 times
Version: 2.0
Category: How-tos

Moving the vendor directory for multiple projects

Created 10 years ago by mariosimaremare, updated 10 years ago by mariosimaremare.

This How-To is useful if you are planning to move the Yii vendor directory outside the default location.

5 0
5 followers
Viewed: 32 931 times
Version: 2.0
Category: How-tos

An alternative way to ElasticSearch

Created 7 years ago by Necip, updated 2 years ago by Necip.

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: 43 928 times
Version: all
Category: How-tos

Creating a Dependent Dropdown From Scratch in Yii2

Created 11 years ago by ThePr0f3550r, updated 7 years ago by alrazi.

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

4 1
12 followers
Viewed: 164 358 times
Version: 2.0
Category: How-tos

Write & use a custom Component in Yii2.0

Created 10 years ago by sirin k, updated 8 years ago by Maurizio Domba Cerin.

This is a simple example in Yii2.0 to understand how you can write a custom component and use it inside your app.(basic template)

14 0
11 followers
Viewed: 126 606 times
Version: 2.0
Category: How-tos

Yii2 - Upgrading to Bootstrap 4

Created 5 years ago by Richard Pillay, updated 5 years ago by Richard Pillay.

Yii2 - Converting from Bootstrap3 to Bootstrap4

12 0
6 followers
Viewed: 112 210 times
Version: 2.0
Category: How-tos

Load data from internal/external source to fill form fields

Created 10 years ago by skworden, updated 10 years ago by skworden.

This wiki is to show you how to use jQuery get and JSON to get data from a dropdown/any form field and fill form fields with the values instantaneously. First, I'll give example use cases of what I'm going to teach you so you can quickly see if this is for you.

1 0
5 followers
Viewed: 36 706 times
Version: 2.0
Category: How-tos

How to use GridView with AJAX

Created 11 years ago by Antonio Ramirez, updated 7 years ago by CeBe.

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.

10 0
15 followers
Viewed: 88 376 times
Version: 2.0
Category: How-tos
Tags: pjax, widget, yii2

How to login from different tables in Yii2

Created 7 years ago by AndroideLP, updated 5 years ago by lenovo.

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

5 0
6 followers
Viewed: 72 651 times
Version: 2.0
Category: How-tos

yii2-app-advanced on single domain (Apache, Nginx)

Created 10 years ago by MadAnd, updated 3 years ago by QuPsi.

If you develop rather complex applications with Yii2, you might already be familiar with yii2-app-advanced application template. Well, the template is awesome and provides high flexibility regarding code/configuration sharing among parts of an application.

4 0
14 followers
Viewed: 151 074 times
Version: 2.0
Category: How-tos

Escape from Default's Yii2 Delete Confirm Box

Created 11 years ago by Antonio Ramirez, updated 9 years ago by Cozumel.

If you started playing with Yii2's new GridView, you will soon realize that some things have improved quite a lot, but I am sure its going to be a bit confusing at first glance when you try to modify certain javascript behaviors like for example, its delete confirmation dialog box.

4 1
16 followers
Viewed: 47 338 times
Version: 2.0
Category: How-tos

Using multiple models in an identity

Created 6 years ago by samdark, updated 10 months ago by Néstor Acevedo.

Let's assume we have two models: Customer and Supplier and we want both to log in. Yii is quite flexible when it comes to authentication and authorization so it's possible.

9 2
5 followers
Viewed: 38 127 times
Version: 2.0
Category: How-tos

Pjax on ActiveForm and GridView - Yii2

Created 10 years ago by Sreenadh, updated 10 years ago by Sreenadh.

Here is a example on how to use Pjax with GridView (yii\grid\GridView) and ActiveForm (yii\widgets\ActiveForm) widgets in Yii2.

7 0
16 followers
Viewed: 169 770 times
Version: 2.0
Category: How-tos

[Guide] How to actually separate Frontend (User) and Backend (Admin) on Yii2 Advanced

Created 10 years ago by Wade Shuler, updated 10 years ago by samdark.

I am writing this guide because I struggled to find a resource that included ALL of the necessary steps to completely separate the frontend from the backend. After reading guides like Configuring different sessions for backend and frontend in yii-advanced-app and [yii2 configuring d...

9 1
18 followers
Viewed: 128 517 times
Version: 2.0
Category: How-tos

How to implement cron in Yii 2

Created 11 years ago by hemc, updated 11 years ago by hemc.

In advance template there is already a file yii. And there is no need to run it as php, it is Linux script.

3 0
13 followers
Viewed: 104 711 times
Version: 2.0
Category: How-tos
Tags: console, cron, yii2

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

Created 10 years ago by ThePr0f3550r, updated 10 years ago by YiiJeka.

Yii2 comes with a charming twitter bootstrap version 3. But if it is less, then you can integrate with web templates that you like. One example is wonderfull template "adminLTE"

9 0
22 followers
Viewed: 135 610 times
Version: 2.0
Category: How-tos

Save and Display Date/Time Fields in different formats in Yii2

Created 11 years ago by Kartik V, updated 10 years ago by Kartik V.

You would find having such a need in most Yii Projects. Your database needs a specific format to store date fields, while you may want to display it in different formats to the users on forms and other views.

0 0
51 followers
Viewed: 180 295 times
Version: 2.0
Category: How-tos

How to hide /frontend/web in url addresses on apache

Created 10 years ago by raminious, updated 10 years ago by jim..

There is an issue on Yii2 to redirecting / urls to /frontend/web.
In other words we need a way to hidden /frontend/web from addresses.
We will do this without changing Apache configuration and creating virtual host or setting document root (It's good for share hostings that we have not access to apache.conf)

11 0
22 followers
Viewed: 130 342 times
Version: 2.0
Category: How-tos

Displaying, Sorting and Filtering Model Relations on a GridView

Created 11 years ago by Antonio Ramirez, updated 11 years ago by Antonio Ramirez.

One of the things you will find tricky to implement is the the sorting and filtering of a GridView's column that displays related model data.

49 0
37 followers
Viewed: 332 235 times
Version: 2.0
Category: How-tos

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

Created 10 years ago by skworden, updated 7 years ago by Yii3.

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.

21 0
28 followers
Viewed: 253 355 times
Version: 2.0
Category: How-tos