Wiki articles

Showing 81-100 of 147 items.

Filter & Sort by Summary Data in GridView Yii 2.0

Created 6 years ago by Kartik V, updated 6 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: 60 062 times
Version: 2.0
Category: Tutorials

Debuging variables in Yii2

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

This tutorial is explained following "basic" application structure.

4 1
7 followers
Viewed: 27 029 times
Version: 2.0
Category: Tips

Escape from Default's Yii2 Delete Confirm Box

Created 6 years ago by Antonio Ramirez, updated 4 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: 36 906 times
Version: 2.0
Category: How-tos

Creating a Dependent Dropdown From Scratch in Yii2

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

4 1
11 followers
Viewed: 113 953 times
Version: 2.0
Category: How-tos

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

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

5 1
17 followers
Viewed: 90 803 times
Version: 2.0
Category: How-tos

Simple way to implement Dynamic Tabular Inputs

Created 5 years ago by ezekielnoob, updated a year ago by samdark.

grid

3 0
10 followers
Viewed: 33 045 times
Version: 2.0
Category: Tutorials

Simple revealing and hiding the password in the password field

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

There are numerous usability problems:

3 0
4 followers
Viewed: 17 734 times
Version: 2.0
Category: How-tos

How to install Yii 2 advanced on a shared hosting environment

Created 4 years ago by oligalma, updated 11 months ago by oligalma.

I've read many comments that it's not possible to install Yii 2 advanced on a shared hosting environment, as it has two webroots. This is partially true.

3 0
2 followers
Viewed: 26 489 times
Version: 2.0
Category: How-tos

How to change GridView delete confirmation message for specific controllers only?

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

Hello,
If you want to give extra attention for some specific delete actions and you don't want to override whole yii.confirm JS method here is what you can do:
(I've only put the ActionColumn part of the GridView here to just give you the idea)

3 0
4 followers
Viewed: 36 088 times
Version: 2.0
Category: Tips

Yii2 RESTful API with OAuth 2.0

Created 2 years ago by sirin k, updated a year ago by sirin k.

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

3 0
3 followers
Viewed: 48 622 times
Version: 2.0
Category: Tutorials

MongoDb's embedded documents mapping for ActiveRecord in Yii2

Created 6 years ago by edoardo849, updated 6 years ago by CeBe.

suppose to have in Mongo a collection "user" like:

3 0
6 followers
Viewed: 21 129 times
Version: 2.0
Category: How-tos

Automatically get the SVN Revision Number of your Project

Created 6 years ago by jcagentzero, updated 6 years ago by jcagentzero.

When you are handling so many projects and those projects are saved in different repository locations, you may find it very difficult to keep track all the versions and revisions manually and it will be much harder if you are developing in multiple repository branches.

3 0
4 followers
Viewed: 9 156 times
Version: all
Category: Tutorials

How to implement cron in Yii 2

Created 6 years ago by hemc, updated 6 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: 80 513 times
Version: 2.0
Category: How-tos
Tags: console, cron, yii2

Configuring different sessions for backend and frontend in Yii advanced app

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

Your need: You require that for shared machines, the user is authenticated again for a backend access again, if someone is logged in from frontend and vice versa.

3 0
46 followers
Viewed: 39 286 times
Version: 2.0
Category: How-tos

Yii2 and Pdf files with Mpdf

Created 6 years ago by CTala, updated 6 years ago by CTala.

I am still new to composer and packagist, so I want to share how I am creating the pdf files because for me was not as simple as it should be.

3 0
8 followers
Viewed: 23 599 times
Version: 2.0
Category: How-tos

Profiling using XDebug

Created 7 years ago by le_top, updated 5 years ago by le_top.

A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.

3 0
3 followers
Viewed: 16 311 times
Version: all
Category: How-tos

Create Form With DynamicModel

Created 5 years ago by Misbahul D Munir, updated 5 years ago by Misbahul D Munir.

In yii2 we can create form without create FormModel. Here we go

3 0
8 followers
Viewed: 35 723 times
Version: 2.0
Category: Tips
Tags: form, model, yii2

Yii2: Configuring different sessions for backend and frontend in Yii Advanced Application Template

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

This is as an extension of this wiki by Kartik V which shows to make different enableAutoLogin cookies for frontend and backend.

3 0
7 followers
Viewed: 36 402 times
Version: 2.0
Category: How-tos

RBAC Super Simple with Admin and User

Created 5 years ago by evercode, updated 5 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: 84 750 times
Version: 2.0
Category: Tutorials

Using multiple models in an identity

Created a year ago by samdark, updated a year ago by samdark.

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.

8 2
3 followers
Viewed: 23 785 times
Version: 2.0
Category: How-tos