Wiki articles

Showing 121-140 of 140 items.
Created 8 years ago by qiang, updated 10 months ago by CeBe.

Adding Yii Search to Your Browser Search Box

The official Yii project site now supports OpenSearch. This means you can customize your browser's search box to enable direct search of the content in yiiframework.com. For example, by entering a Yii class name in the browser's search box, the corresponding class API page will be shown in the browser.

25 0
6 followers
Viewed: 49 219 times
Version: all
Category: Tips
Created 7 years ago by yJeroen, updated 10 months ago by CeBe.

How to learn Yii?!

Here is a step by step To-Do list for Yii beginners. The list is an advice of what tutorials and documentation you can walk through to get a full understanding of the Yii Framework. These can be a help to learn Yii.

17 0
21 followers
Viewed: 94 925 times
Version: all
Category: Tutorials
Created 4 years ago by Kartik V, updated 10 months 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: 40 337 times
Version: 2.0
Category: How-tos
Created 2 years ago by AndroideLP, updated 10 months ago by AndroideLP.

Optimize Scenarios for yii2

Working with scenarios, with models that can receive many modifications in their rules or structures as development evolves, can create disruptions in the rescue process.

3 0
2 followers
Viewed: 20 246 times
Version: 2.0
Category: Tutorials
Created 10 months ago by CeBe, updated 9 months ago by CeBe.

Configuring PhpStorm IDE for Yii 2

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.

10 0
6 followers
Viewed: 16 401 times
Version: 2.0
Category: Tips
Created 5 years ago by Kartik V, updated 8 months ago by Kabinenkoffer.

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

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

11 2
63 followers
Viewed: 189 015 times
Version: 2.0
Category: Tutorials
Created 3 years ago by MetaCrawler, updated 7 months ago by Luis Armando.

YII2: Create console commands inside a module or extension

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: 32 539 times
Version: 2.0
Category: Tutorials
Created 10 months ago by Luis Armando, updated 7 months ago by Maurizio Domba Cerin.

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

0 0
3 followers
Viewed: 5 249 times
Version: 2.0
Category: How-tos
Created 9 months ago by hehbhehb, updated 6 months ago by CeBe.

Pjax GridView: refresh page after delete

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
2 followers
Viewed: 11 022 times
Version: 2.0
Category: How-tos
Created 6 months ago by CeBe, updated 6 months ago by CeBe.

Getting information from the current locale

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: 3 576 times
Version: 2.0
Category: How-tos
Created 7 months ago by Necip, updated 6 months ago by Necip.

An alternative way to ElasticSearch

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: 5 768 times
Version: all
Category: How-tos
Created 6 months ago by s.oli, updated 5 months ago by samdark.

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

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: 7 520 times
Version: 2.0
Category: Tips
Created 4 years ago by softark, updated 4 months ago by softark.

Drills : Search by a HAS_MANY relation in Yii 2.0

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: 70 618 times
Version: 2.0
Category: Tutorials
Created a year ago by sirin k, updated 3 months ago by sirin k.

Yii2 RESTful API with OAuth 2.0

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

3 0
3 followers
Viewed: 32 705 times
Version: 2.0
Category: Tutorials
Created 3 months ago by toaster, updated 2 months ago by toaster.

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

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...

6 0
2 followers
Viewed: 3 311 times
Version: 2.0
Category: Tutorials
Created 3 years ago by MadAnd, updated 2 months ago by MadAnd.

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

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: 86 246 times
Version: 2.0
Category: How-tos
Created 5 years ago by Kostas Apazidis (KonApaz), updated a month ago by samdark.

Remove Byte Order Mark (BOM) from files recursively

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
8 followers
Viewed: 22 998 times
Version: all
Category: How-tos
Created 4 years ago by Kartik V, updated a month ago by samdark.

How to read HTML5 Multiple File Input from controller?

0 2
40 followers
Viewed: 12 699 times
Version: 2.0
Category: How-tos
Created 3 years ago by ezekielnoob, updated a month ago by samdark.

Simple way to implement Dynamic Tabular Inputs

grid

2 0
11 followers
Viewed: 28 132 times
Version: 2.0
Category: Tutorials
Created 4 months ago by samdark, updated 23 days ago by samdark.

Using multiple models in an identity

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.

7 1
2 followers
Viewed: 9 623 times
Version: 2.0
Category: How-tos