Wiki articles

Showing 1-20 of 142 items.

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

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

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

11 2
64 followers
Viewed: 192 452 times
Version: 2.0
Category: Tutorials

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

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

16 0
26 followers
Viewed: 180 884 times
Version: 2.0
Category: How-tos

Displaying, Sorting and Filtering Model Relations on a GridView

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

27 0
29 followers
Viewed: 239 911 times
Version: 2.0
Category: How-tos

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

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

8 0
19 followers
Viewed: 99 854 times
Version: 2.0
Category: How-tos

Save and Display Date/Time Fields in different formats in Yii2

Created 5 years ago by Kartik V, updated 4 years ago by Kartik V.

You would find having such a need in most Yii Projects. Your database needs a specific format to store date fields, while you may want to display it in different formats to the users on forms and other views.

0 0
51 followers
Viewed: 140 569 times
Version: 2.0
Category: How-tos

RBAC Super Simple with Admin and User

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

One of the common requests I see in the forum is how to implement RBAC. While you can implement Yii 2's built-in RBAC, that might be too much for developers who are just starting with Yii 2 or have simpler needs. Sometimes you are looking for a fast solution and just want two flavors, user and admin. And even if you will eventually need more, you can use these methods as a starting point for devel...

6 1
14 followers
Viewed: 76 615 times
Version: 2.0
Category: Tutorials

How to implement cron in Yii 2

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

In advance template there is already a file yii. And there is no need to run it as php, it is Linux script.

3 0
13 followers
Viewed: 71 851 times
Version: 2.0
Category: How-tos
Tags: console, cron, yii2

Pjax on ActiveForm and GridView - Yii2

Created 4 years ago by Sreenadh, updated 4 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
14 followers
Viewed: 118 450 times
Version: 2.0
Category: How-tos

Escape from Default's Yii2 Delete Confirm Box

Created 5 years ago by Antonio Ramirez, updated 3 years ago by Cozumel.

If you started playing with Yii2's new GridView, you will soon realize that some things have improved quite a lot, but I am sure its going to be a bit confusing at first glance when you try to modify certain javascript behaviors like for example, its delete confirmation dialog box.

4 1
16 followers
Viewed: 33 533 times
Version: 2.0
Category: How-tos

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

Created 4 years ago by ThePr0f3550r, updated 4 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
23 followers
Viewed: 108 429 times
Version: 2.0
Category: How-tos

YII2: Create console commands inside a module or extension

Created 3 years ago by MetaCrawler, updated 10 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: 33 765 times
Version: 2.0
Category: Tutorials

Filter & Sort by Summary Data in GridView Yii 2.0

Created 5 years ago by Kartik V, updated 5 years ago by Kartik V.

This wiki explains how to add summary data from related models into your Yii Framework 2.0 gridview with filtering and sorting by the summary columns.

5 2
49 followers
Viewed: 56 224 times
Version: 2.0
Category: Tutorials

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

Created 4 years ago by MadAnd, updated 5 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: 89 467 times
Version: 2.0
Category: How-tos

Activating Bootstrap 3 Tooltips & Popover for your Yii Site.

Created 5 years ago by Kartik V, updated a year ago by alrazi.

Step 1: Initialize the Bootstrap Tooltip & Popover plugins in your view layout file @web\views\layouts\main.php. Add this to somewhere in the beginning head section (after you have loaded the Jquery using your AppAsset or something similar).

2 2
47 followers
Viewed: 50 776 times
Version: 2.0
Category: Tips

Handling tabular data loading and validation in Yii 2

Created 5 years ago by Kartik V, updated 3 years ago by Said Bakr.

The only differences in Yii 2 is that its much simpler due to available functions in the Model class for loading and validating models.

2 2
51 followers
Viewed: 47 293 times
Version: 2.0
Category: Tutorials

Creating a Simple CRUD App With Yii2 (Revised 12/20/2013)

Created 6 years ago by Charles R. Portwood II, updated 5 years ago by Vivek.

By popular demand, today I will be revisiting my previous Yii Framework 2 Getting Started Guide and updating it with what is currently available in the Yii Framework 2 Repository. Provide here is an super simple example CRUD application that will help you get started using the framework.

7 6
21 followers
Viewed: 216 320 times
Version: 2.0
Category: Tutorials

How to learn Yii?!

Created 7 years ago by yJeroen, updated a year 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: 96 727 times
Version: all
Category: Tutorials

How to use GridView with AJAX

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

Managing your nested dropdown dependency with DepDrop widget

Created 5 years ago by Kartik V, updated 5 years ago by Kartik V.

If you are coming over to Yii 2 from Yii 1.x, you may have already read this useful wiki for creating dependent dropdowns. You can use a similar approach in Yii 2 to do the same. But if you are looking at a prebuilt solution that helps you manage it easier, read along.

2 3
43 followers
Viewed: 34 364 times
Version: 2.0
Category: Tutorials

Building a REST API in Yii2.0

Created 4 years ago by sirin k, updated a year ago by Maurizio Domba Cerin.

This is wiki page is useful if you are trying to build a customized REST API in Yii2.0

4 0
16 followers
Viewed: 124 916 times
Version: 2.0
Category: Tutorials