Wiki articles

Showing 141-160 of 164 items.

Yii2: How to create/develop a new extension using Composer locally without version control or Git

Created 7 years ago by Wade Shuler, updated 4 years ago by jwerner.

Using a version control system, like Git, is nice. However, when building an extension from scratch and loading it via Composer, it adds a lot of pain in the butt steps. You have to commit your changes, update composer to pull them over, then notice there is an error, fix, commit, update. repeat.. I don't want all my baby steps under Git. Sure, I could edit my commit history, but c'mon. Just let m...

7 0
6 followers
Viewed: 35 847 times
Version: 2.0
Category: How-tos

Nested Set with Yii2

Created 5 years ago by sangprabo, updated 4 years ago by sangprabo.

The nested set behaviour is an approach to store hierarchical data in relational databases. For example, if we have many categories for our product or items. One category can be a "parent" for other categories, means that one category consists of more than one category. The model can be drawn using a "tree" model. There are other approaches available but what we will learn in this article is speci...

7 0
3 followers
Viewed: 49 429 times
Version: 2.0
Category: Tutorials
7 0
4 followers
Viewed: 233 052 times
Version: 2.0
Category: Tutorials

Yii v2 snippet guide III

Created 3 years ago by rackycz, updated 8 months ago by rackycz.

Articles are separated into more files as there is the max lenght for each file on wiki.

8 0
4 followers
Viewed: 136 580 times
Version: 2.0
Category: Tutorials

Use kartik Growl with Yii2 flash messages

Created 9 years ago by skworden, updated 8 years ago by skworden.

This is to show you how to use Yii2 flash messages with Kartik Growl (bootstrap notify wrapper).

8 0
11 followers
Viewed: 48 384 times
Version: 2.0
Category: How-tos

YII2: Create console commands inside a module or extension

Created 8 years ago by MetaCrawler, updated 5 years ago by Luis Armando.

Here is a small guide how to get console commands running inside modules & extensions. For this guide I used a fresh yii2 basic application template.

8 0
6 followers
Viewed: 63 677 times
Version: 2.0
Category: Tutorials

Batch Gridview data ajax send splitted in chunks displaying bootstrap Progress bar

Created 5 years ago by toaster, updated 5 years ago by toaster.

The scenario in which this wiki can be useful is when you have to send an (huge) array of model ids and perform a time consuming computation with it like linking every model to other models. The idea is to split the array into smaller arrays and perform sequential ajax requests, showing the calculation progress using a [Bootstrap Progress bar](https://www.yiiframework.com/extension/yiisoft/yii2-bo...

8 0
2 followers
Viewed: 32 956 times
Version: 2.0
Category: Tutorials

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 610 times
Version: 2.0
Category: How-tos

Relational Query - Lazy Loading and Eager Loading in Yii 2.0

Created 8 years ago by softark, updated 4 years ago by samdark.

It's well known that there are Lazy Loading approach and Eager Loading approach in the relational query. But it's very important to know how the Eager Loading approach works in Yii 2. It has changed drastically from that of Yii 1.1, and there are common misunderstandings about it in the community.

10 0
6 followers
Viewed: 55 715 times
Version: 2.0
Category: Tutorials
10 0
15 followers
Viewed: 41 059 times
Version: all
Category: Others

How to use GridView with AJAX

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

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 243 times
Version: 2.0
Category: How-tos

Move sources to src

Created 4 years ago by samdark, updated 4 years ago by samdark.

Yii 3 and many Yii 2 package sources are contained within src directory which is convenient since you have less directories to check.

11 0
6 followers
Viewed: 14 360 times
Version: 2.0
Category: How-tos

Yii2 - Upgrading to Bootstrap 4

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

Yii2 - Converting from Bootstrap3 to Bootstrap4

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

Show raw SQL query

Created 7 years ago by darioo, updated 7 years ago by darioo.

Here's a quick tip to dump the SQL for query.

19 1
5 followers
Viewed: 239 808 times
Version: 2.0
Category: FAQs

JWT authentication tutorial

Created 2 years ago by Allan Jensen, updated 2 years ago by Allan Jensen.

JWT is short for JSON Web Token. It is used eg. instead of sessions to maintain a login in a browser that is talking to an API - since browser sessions are vulnerable to CSRF security issues. JWT is also less complicated than setting up an OAuth authentication mechanism.

13 0
8 followers
Viewed: 147 605 times
Version: 2.0
Category: Tutorials

Drills : Search by a HAS_MANY relation in Yii 2.0

Created 9 years ago by softark, updated 5 years ago by softark.

This article tries to describe the practical techniques of searching by a HAS_MANY relation using ActiveRecord of Yii 2.0.

13 0
14 followers
Viewed: 104 238 times
Version: 2.0
Category: Tutorials

When to use Active Record

Created 5 years ago by samdark, updated 3 years ago by samdark.

When to use Active Record is a common question among developers, Yii and overall.

13 0
4 followers
Viewed: 52 477 times
Version: all
Category: FAQs

Configuring PhpStorm IDE for Yii 2

Created 5 years ago by CeBe, updated 5 years ago by CeBe.

There are a few settings and plugins that can enhance the development experience with Yii in PHPStorm or IntelliJ IDEA. This article explains how to get the most out of your IDE.

14 0
6 followers
Viewed: 49 781 times
Version: 2.0
Category: Tips

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: 121 969 times
Version: 2.0
Category: How-tos