Wiki articles in category How-tos

Showing 61-80 of 80 items.

An alternative way to ElasticSearch

Created 5 years ago by Necip, updated a year 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: 40 992 times
Version: all
Category: How-tos

How to implement form events

Created 9 years ago by Antonio Ramirez, updated 8 years ago by deacs.

You have that, when a product is on development they can change its API anytime. This change is quite important though, its related on how to set the events of your form, for example, the useful beforeSubmit.

5 0
6 followers
Viewed: 37 832 times
Version: 2.0
Category: How-tos
Tags: Forms, How to, yii2

Moving the vendor directory for multiple projects

Created 9 years ago by mariosimaremare, updated 9 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: 30 817 times
Version: 2.0
Category: How-tos

Creating a Dependent Dropdown From Scratch in Yii2

Created 9 years ago by ThePr0f3550r, updated 6 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: 147 085 times
Version: 2.0
Category: How-tos

Write & use a custom Component in Yii2.0

Created 9 years ago by sirin k, updated 6 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: 122 049 times
Version: 2.0
Category: How-tos

Yii2 - Upgrading to Bootstrap 4

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

Yii2 - Converting from Bootstrap3 to Bootstrap4

12 0
6 followers
Viewed: 76 513 times
Version: 2.0
Category: How-tos

Load data from internal/external source to fill form fields

Created 8 years ago by skworden, updated 8 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: 34 378 times
Version: 2.0
Category: How-tos

How to login from different tables in Yii2

Created 5 years ago by AndroideLP, updated 3 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: 61 430 times
Version: 2.0
Category: How-tos

How to use GridView with AJAX

Created 9 years ago by Antonio Ramirez, updated 6 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: 85 584 times
Version: 2.0
Category: How-tos
Tags: pjax, widget, yii2

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

Created 9 years ago by MadAnd, updated 2 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: 143 584 times
Version: 2.0
Category: How-tos

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

Created 8 years ago by Wade Shuler, updated 8 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: 119 594 times
Version: 2.0
Category: How-tos

Escape from Default's Yii2 Delete Confirm Box

Created 9 years ago by Antonio Ramirez, updated 8 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: 44 988 times
Version: 2.0
Category: How-tos

Using multiple models in an identity

Created 5 years ago by samdark, updated 2 years 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.

8 2
4 followers
Viewed: 35 379 times
Version: 2.0
Category: How-tos

Pjax on ActiveForm and GridView - Yii2

Created 9 years ago by Sreenadh, updated 9 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.

6 0
15 followers
Viewed: 163 342 times
Version: 2.0
Category: How-tos

How to implement cron in Yii 2

Created 9 years ago by hemc, updated 9 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: 100 021 times
Version: 2.0
Category: How-tos
Tags: console, cron, yii2

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

Created 9 years ago by ThePr0f3550r, updated 9 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: 131 694 times
Version: 2.0
Category: How-tos

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

Created 9 years ago by Kartik V, updated 9 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: 175 023 times
Version: 2.0
Category: How-tos

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

Created 9 years ago by raminious, updated 9 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)

10 0
21 followers
Viewed: 125 353 times
Version: 2.0
Category: How-tos

Displaying, Sorting and Filtering Model Relations on a GridView

Created 9 years ago by Antonio Ramirez, updated 9 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.

48 0
37 followers
Viewed: 325 961 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 8 years ago by skworden, updated 5 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: 245 711 times
Version: 2.0
Category: How-tos