Wiki articles

Showing 1-20 of 148 items.

Displaying, Sorting and Filtering Model Relations on a GridView

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

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

Adding Yii Search to Your Browser Search Box

Created 9 years ago by qiang, updated 2 years ago by CeBe.

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: 52 318 times
Version: all
Category: Tips

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

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

19 0
26 followers
Viewed: 201 754 times
Version: 2.0
Category: How-tos

How to learn Yii?!

Created 8 years ago by yJeroen, updated 6 months ago by CeBe.

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: 104 137 times
Version: all
Category: Tutorials

Show raw SQL query

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

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

15 0
4 followers
Viewed: 135 094 times
Version: 2.0
Category: FAQs

Configuring PhpStorm IDE for Yii 2

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

13 0
6 followers
Viewed: 32 511 times
Version: 2.0
Category: Tips

Write & use a custom Component in Yii2.0

Created 5 years ago by sirin k, updated 3 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)

13 0
11 followers
Viewed: 105 260 times
Version: 2.0
Category: How-tos

Drills : Search by a HAS_MANY relation in Yii 2.0

Created 5 years ago by softark, updated a year ago by softark.

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

12 0
13 followers
Viewed: 83 663 times
Version: 2.0
Category: Tutorials
10 0
15 followers
Viewed: 35 670 times
Version: all
Category: Others

When to use Active Record

Created 2 years ago by samdark, updated 2 months ago by samdark.

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

10 0
3 followers
Viewed: 46 218 times
Version: all
Category: FAQs

How to use GridView with AJAX

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

9 0
15 followers
Viewed: 75 042 times
Version: 2.0
Category: How-tos
Tags: pjax, widget, yii2

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

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

9 0
2 followers
Viewed: 21 579 times
Version: 2.0
Category: Tutorials

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

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

9 0
20 followers
Viewed: 107 593 times
Version: 2.0
Category: How-tos

Move sources to src

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

9 0
4 followers
Viewed: 7 553 times
Version: 2.0
Category: How-tos

YII2: Create console commands inside a module or extension

Created 5 years ago by MetaCrawler, updated 2 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: 41 497 times
Version: 2.0
Category: Tutorials

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

Created 6 years ago by ThePr0f3550r, updated 5 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"

8 0
21 followers
Viewed: 117 137 times
Version: 2.0
Category: How-tos

Yii2 - Upgrading to Bootstrap 4

Created 5 months ago by Richard Pillay, updated 4 months ago by Richard Pillay.

Yii2 - Converting from Bootstrap3 to Bootstrap4

8 0
6 followers
Viewed: 19 281 times
Version: 2.0
Category: How-tos

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

Created 3 years ago by Wade Shuler, updated a year 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: 24 875 times
Version: 2.0
Category: How-tos

Pjax on ActiveForm and GridView - Yii2

Created 5 years ago by Sreenadh, updated 5 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: 135 735 times
Version: 2.0
Category: How-tos

Use minified version of JqueryAsset, BootstrapAsset (and all default assets)

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

By default, Yii 2.0 chooses to use the non-minified version of Jquery and Bootstrap files (CSS and JS). However, there's a simple way to indicate Yii to use the minified version.

6 0
5 followers
Viewed: 27 062 times
Version: 2.0
Category: How-tos