Wiki articles

Showing 41-60 of 145 items.

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

Integrating ZF2 into Yii - use case demonstrated

Created 6 years ago by Boaz, updated 5 years ago by Boaz.

I needed to use a class from ZF2 in my Yii project. I've read probably all there is about this subject and still I needed lots of trial & errors to get it working, probably due to my lack of experience working with namepsaces and ZF2 in general. Also, the resources on the web are all partial, at best. Most simply refer to ZF1 where things are technically different. When I got it all working I de...

4 0
6 followers
Viewed: 10 406 times
Version: 2.0
Category: How-tos

Using multiple models in an identity

Created a year ago by samdark, updated 9 months 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
2 followers
Viewed: 18 239 times
Version: 2.0
Category: How-tos

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

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 339 times
Version: 2.0
Category: How-tos

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: 15 649 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 4 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: 24 313 times
Version: 2.0
Category: How-tos

How to create/update a model with its related items using Listbox or CheckboxList

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

Assume we have many categories and many posts.

3 0
6 followers
Viewed: 30 515 times
Version: 2.0
Category: Tutorials

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

Created 3 years ago by AlaFalaki, updated 3 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: 33 032 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: 40 488 times
Version: 2.0
Category: Tutorials

MongoDb's embedded documents mapping for ActiveRecord in Yii2

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

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

3 0
6 followers
Viewed: 19 716 times
Version: 2.0
Category: How-tos

Automatically get the SVN Revision Number of your Project

Created 5 years ago by jcagentzero, updated 5 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: 8 367 times
Version: all
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: 75 361 times
Version: 2.0
Category: How-tos
Tags: console, cron, yii2

Configuring different sessions for backend and frontend in Yii advanced app

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

Yii2 and Pdf files with Mpdf

Created 5 years ago by CTala, updated 5 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: 22 332 times
Version: 2.0
Category: How-tos

Profiling using XDebug

Created 6 years ago by le_top, updated 4 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: 15 315 times
Version: all
Category: How-tos

Debuging variables in Yii2

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

This tutorial is explained following "basic" application structure.

4 1
7 followers
Viewed: 24 494 times
Version: 2.0
Category: Tips

[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 664 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: 34 902 times
Version: 2.0
Category: How-tos

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