Wiki articles

Showing 121-140 of 145 items.

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: 57 643 times
Version: 2.0
Category: Tutorials

Editing, Deleting, and Viewing model data with the yii2-detail-view extension

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

The yii2-detail-view extension offers you an easy way to EDIT and VIEW your model data, toggle these modes, and adds other features. You can read the extension documentation and/or view a demo of this extension, to understand usage.

1 0
43 followers
Viewed: 67 198 times
Version: 2.0
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: 71 804 times
Version: 2.0
Category: How-tos
Tags: pjax, widget, yii2

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: 75 459 times
Version: 2.0
Category: How-tos
Tags: console, cron, yii2

How to use imagine ( crop, thumb, effects for images ) on Yii2

Created 5 years ago by Anas AbuDayah, updated 3 years ago by Cozumel.

Imagine adds most common image functions and also acts as a wrapper to Imagine image manipulation library.

5 0
13 followers
Viewed: 76 087 times
Version: 2.0
Category: Tutorials

Drills : Search by a HAS_MANY relation in Yii 2.0

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

11 0
12 followers
Viewed: 77 329 times
Version: 2.0
Category: Tutorials

RBAC Super Simple with Admin and User

Created 5 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: 79 511 times
Version: 2.0
Category: Tutorials

[Guide] How to actually separate Frontend (User) and Backend (Admin) on Yii2 Advanced

Created 4 years ago by Wade Shuler, updated 4 years ago by samdark.

I am writing this guide because I struggled to find a resource that included ALL of the necessary steps to completely separate the frontend from the backend. After reading guides like Configuring different sessions for backend and frontend in yii-advanced-app and [yii2 configuring d...

4 1
16 followers
Viewed: 80 774 times
Version: 2.0
Category: How-tos

Installation guide: Yii-2 advanced template with RBAC system

Created 3 years ago by Sherin Jose, updated 3 years ago by Sherin Jose.

Welcome, all of you !

7 1
19 followers
Viewed: 85 465 times
Version: 2.0
Category: Tutorials
Tags: install, rbac, yii2

How to send emails using SMTP

Created 5 years ago by robregonm, updated 7 months ago by Wade Shuler.
5 0
10 followers
Viewed: 95 282 times
Version: 2.0
Category: How-tos

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

Created 4 years ago by MadAnd, updated 11 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: 95 455 times
Version: 2.0
Category: How-tos

Write & use a custom Component in Yii2.0

Created 5 years ago by sirin k, updated 2 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: 99 384 times
Version: 2.0
Category: How-tos

How to learn Yii?!

Created 8 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: 99 632 times
Version: all
Category: Tutorials

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

Created 5 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: 102 876 times
Version: 2.0
Category: How-tos

Show raw SQL query

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

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

13 0
5 followers
Viewed: 103 935 times
Version: 2.0
Category: FAQs

Creating a Dependent Dropdown From Scratch in Yii2

Created 5 years ago by ThePr0f3550r, updated a year ago by alrazi.

I have read http://www.yiiframework.com/wiki/24/creating-a-dependent-dropdown/ (Dependen Dropdown Yii1), but I can't implement it in Yii2 because Yii2 does not have built-in AJAX functionality hem.. I searched about it and came across this post

3 1
11 followers
Viewed: 106 736 times
Version: 2.0
Category: How-tos

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

Created 5 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
22 followers
Viewed: 111 704 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
14 followers
Viewed: 125 215 times
Version: 2.0
Category: How-tos

Building a REST API in Yii2.0

Created 5 years ago by sirin k, updated 2 years 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: 127 533 times
Version: 2.0
Category: Tutorials

Yii 2 list of path aliases available with default basic and advanced app.

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

If you are coming over from Yii 1.x to Yii 2, and already read this guide, you may note that namespaces are very important in Yii 2 to identify classes. But do you know the list of seeded path aliases that come shipped with a basic or advanced app? Here is my attempt to list them.

11 3
47 followers
Viewed: 139 246 times
Version: 2.0
Category: Tips