Wiki

Articles in category "tutorials", sorted by viewsX
Displaying 161-170 of 253 result(s).

Impersonate Users within Yii Framework

Created 5 years ago by WoilTutorials6 comments – viewed 16,366 times – ( +22 ) – version 1.1
For some applications it can be advantageous for administration reasons to allow site administrators to login as other users. This is sometimes called user impersonation or "becoming that user".

What to do when composer fails to update your vendor packages?

Created 2 years ago by Kartik VTutorials0 comments – viewed 16,061 times – ( +38 / -5 ) – version 2.0
Have you faced some of these problems when using composer with your Yii 2 installation?

Upload CSV File

Created 3 years ago by bhavesh vaghelaTutorials2 comments – viewed 15,920 times – ( +8 ) – version 1.1
View file

Running applications with Docker

Created about a year ago by schmunkTutorials1 comment – viewed 15,865 times – ( +7 ) – version 2.0
When building PHP web applications you usually have to take care about defining and providing a consistent development and production environment for your team. This includes your application packages, PHP-extensions, database servers and often further components such as a mail server or workers.

Simple Mail Queue

Created 3 years ago by waterloomattTutorials3 comments – viewed 15,757 times – ( +10 / -2 ) – version 1.1
This tutorial shows how to create a simple mail queue. It is usually run from a cron job but can be run from the command line too.

Simple Way to Upload and Save File

Created 2 years ago by Misbahul D MunirTutorials0 comments – viewed 15,750 times – ( -2 ) – version 2.0
This tutorial need extension mdmsoft/yii2-upload-file. Follow the intruction to install. After installation done, create controller and action

YII SaaS Multi Tenant application with single database

Created 3 years ago by Rajith RTutorials5 comments – viewed 15,325 times – ( +11 / -10 ) – version 1.1
Lots of people are asking how to solve it with YII,We think its difficult with YII. But its easy to solve . There is no database triggers needed . we can simply sove it by extending a class(say "RActiveRecord") from CActiveRecord .Then extend all our model classes from that class.

How to log context information to logger (session id, user, ...)

Created 7 years ago by olafureTutorials0 comments – viewed 15,060 times – ( +2 ) – version 1.1
Logging context information (session, user, ...) to the logfile can be of great help tracking down problems with specific users.
tags: Logging

Simple way to implement Dynamic Tabular Inputs

Created about a year ago by ezekielnoobTutorials5 comments – viewed 15,002 times – ( +4 ) – version all

How to make customizable Db Table prefixes using ActiveRecord

Created 7 years ago by killermonkTutorials0 comments – viewed 14,877 times – version 1.1
Note: As of Yii 1.1.x this functionality is integrated into the framework. If you are using 1.1.x please disregard this article and use the built-in functionality.