Wiki articles

Showing 121-140 of 142 items.

Configuring PhpStorm IDE for Yii 2

Created a year ago by CeBe, updated a year 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.

11 0
6 followers
Viewed: 20 082 times
Version: 2.0
Category: Tips

YII2: Create console commands inside a module or extension

Created 3 years ago by MetaCrawler, updated 11 months 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.

7 0
6 followers
Viewed: 34 210 times
Version: 2.0
Category: Tutorials

Use non Gmail/Gsuite on Gcloud projects

Created a year ago by Luis Armando, updated 11 months ago by Maurizio Domba Cerin.

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
3 followers
Viewed: 5 984 times
Version: 2.0
Category: How-tos

Pjax GridView: refresh page after delete

Created a year ago by hehbhehb, updated 11 months ago by CeBe.

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
3 followers
Viewed: 14 000 times
Version: 2.0
Category: How-tos

Getting information from the current locale

Created 10 months ago by CeBe, updated 10 months ago by CeBe.

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

An alternative way to ElasticSearch

Created 11 months ago by Necip, updated 10 months 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: 6 978 times
Version: all
Category: How-tos

How to organize Design "things" in Yii 2 (themes and layout)

Created 11 months ago by s.oli, updated 10 months ago by samdark.

Sometimes the App needs a nicer look & feel, so its necessary to organize the assets for this and Yii can help a lot to make it easy. In this article I provide tips for handling multiple "Designs". I use these three features:

1 0
2 followers
Viewed: 10 634 times
Version: 2.0
Category: Tips

Drills : Search by a HAS_MANY relation in Yii 2.0

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

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

11 0
12 followers
Viewed: 73 782 times
Version: 2.0
Category: Tutorials

Yii2 RESTful API with OAuth 2.0

Created a year ago by sirin k, updated 7 months ago by sirin k.

https://cdn.pbrd.co/images/GMN5ROs.jpg

3 0
3 followers
Viewed: 36 757 times
Version: 2.0
Category: Tutorials

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

Created 7 months ago by toaster, updated 7 months 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...

7 0
2 followers
Viewed: 10 047 times
Version: 2.0
Category: Tutorials

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

Created 4 years ago by MadAnd, updated 6 months ago by MadAnd.

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.

3 0
13 followers
Viewed: 90 820 times
Version: 2.0
Category: How-tos

Remove Byte Order Mark (BOM) from files recursively

Created 5 years ago by Kostas Apazidis (KonApaz), updated 5 months ago by samdark.

The problem was that all my web applications ran normally on localhost, but on server the Greek characters (or any other no-english characters) displayed with problems.

2 1
7 followers
Viewed: 23 807 times
Version: all
Category: How-tos

How to read HTML5 Multiple File Input from controller?

Created 5 years ago by Kartik V, updated 5 months ago by samdark.
0 2
40 followers
Viewed: 13 340 times
Version: 2.0
Category: How-tos

Simple way to implement Dynamic Tabular Inputs

Created 4 years ago by ezekielnoob, updated 5 months ago by samdark.

grid

2 0
10 followers
Viewed: 29 306 times
Version: 2.0
Category: Tutorials

Using multiple models in an identity

Created 8 months ago by samdark, updated 4 months ago by samdark.

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 1
2 followers
Viewed: 15 214 times
Version: 2.0
Category: How-tos

Filter & Sort by calculated/related fields in GridView Yii 2.0

Created 5 years ago by Kartik V, updated 3 months ago by softark.

This wiki explains how to add calculated fields into your Yii Framework 2.0 gridview with filtering and sorting.

12 2
64 followers
Viewed: 193 573 times
Version: 2.0
Category: Tutorials

Events registration examples

Created 3 months ago by minitia, updated 3 months ago by minitia.

Register an event handler at Object-Level

1 0
2 followers
Viewed: 7 239 times
Version: 2.0
Category: How-tos
Tags: events, yii2
2 0
3 followers
Viewed: 21 589 times
Version: 2.0
Category: How-tos

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

Created 2 years ago by Wade Shuler, updated 3 months 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...

6 0
5 followers
Viewed: 19 833 times
Version: 2.0
Category: How-tos

Nested Set with Yii2

Created 3 months ago by sangprabo, updated 2 months 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...

4 0
3 followers
Viewed: 3 125 times
Version: 2.0
Category: Tutorials