Wiki articles

Showing 121-140 of 140 items.
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: 188 969 times
Version: 2.0
Category: Tutorials
Created 3 years ago by skworden, updated 3 years ago by skworden.

Use kartik Growl with Yii2 flash messages

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

6 0
10 followers
Viewed: 36 537 times
Version: 2.0
Category: How-tos
Created 2 years ago by schmunk, updated 2 years ago by samdark.

Boost composer-asset-plugin update speed

If you're using a lot of bower and npm assets with Yii 2.0 you might encounter long running composer update tasks.

6 0
6 followers
Viewed: 17 844 times
Version: 2.0
Category: Tips
Created a year ago by Chris Backhouse, updated 10 months ago by Chris Backhouse.

Yii2 Report Grid

There are some very advanced grids in the Yii2 community, specifically Kartik's amazing gridview extensions but they all designed for interactive screen use.

6 0
7 followers
Viewed: 19 787 times
Version: 2.0
Category: Tips
Created 5 years ago by edoardo849, updated 4 years ago by skworden.

Upload files in Yii2 with MongoDb and GridFs

Uploading files in a webapp can be extremely tricky and sometimes the quickest way to do it is to store the file directly in the webserver or into a DNS (like Amazon S3) and then to save the link and the metadata inside a table in the DB. The thing is that you'll have to deal with file permissions, server storage, file management and so on (which is perfectly fine, by the way).

6 0
5 followers
Viewed: 22 325 times
Version: 2.0
Category: How-tos
Created 2 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 276 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 526 times
Version: 2.0
Category: Tutorials
Created 4 years ago by ThePr0f3550r, updated 4 years ago by YiiJeka.

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

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
22 followers
Viewed: 106 640 times
Version: 2.0
Category: How-tos
Created 4 years ago by raminious, updated 4 years ago by jim..

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

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)

8 0
19 followers
Viewed: 98 132 times
Version: 2.0
Category: How-tos
Created 2 years ago by darioo, updated 2 years ago by darioo.

Show raw SQL query

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

9 0
4 followers
Viewed: 72 725 times
Version: 2.0
Category: FAQs
Created 4 years ago by Antonio Ramirez, updated 10 months ago by CeBe.

How to use GridView with AJAX

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: 68 145 times
Version: 2.0
Category: How-tos
Tags: pjax, widget, yii2
Created 6 months ago by samdark.

When to use Active Record

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

9 0
3 followers
Viewed: 13 092 times
Version: all
Category: FAQs
10 0
15 followers
Viewed: 32 865 times
Version: all
Category: Others
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 369 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 582 times
Version: 2.0
Category: Tutorials
Created 4 years ago by sirin k, updated a year ago by Maurizio Domba Cerin.

Write & use a custom Component in Yii2.0

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)

12 0
11 followers
Viewed: 92 833 times
Version: 2.0
Category: How-tos
Created 3 years ago by skworden, updated 10 months ago by Yii3.

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

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.

16 0
26 followers
Viewed: 176 550 times
Version: 2.0
Category: How-tos
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 915 times
Version: all
Category: Tutorials
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 213 times
Version: all
Category: Tips
Created 4 years ago by Antonio Ramirez, updated 4 years ago by Antonio Ramirez.

Displaying, Sorting and Filtering Model Relations on a GridView

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.

27 0
29 followers
Viewed: 231 641 times
Version: 2.0
Category: How-tos