Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 51-60 of 341 result(s).

A Multi-Tenant Strategy using Yii and MySQL

Created about a year ago by JFReyesHow-tos8 comments – viewed 13,931 times – ( +9 ) – version 1.1
This article describes an implementation of multi-tenancy using Yii and MySQL.

How to create front and admin side login form

Created 2 years ago by vibhaJadwaniHow-tos8 comments – viewed 58,428 times – ( +6 ) – version 1.1
In this WIKI you can learn how to create front and admin login form, using database.

How to log and debug variables using CWebLogRoute

Created 4 years ago by Antonio RamirezHow-tos8 comments – viewed 53,863 times – ( +18 ) – version 1.1
I have seen a couple of articles about how to integrate external libraries to debug our PHP code (i.e. firePHP) but after you read this article you will realize that there is no need for such libraries when using Yii.
tags: Logging

Moving project code outside of webroot (plus multiple project support)

Created 4 years ago by Steve FriedlHow-tos8 comments – viewed 42,848 times – ( +22 / -1 ) – version 1.1
Yii's by-default directory organization works well enough, but there are several steps one can take that improve the security and serviceability of the system, especially in the context of multiple Yii projects on the same machine (including multiple versions of the same project).
tags: config, security

How to implement cron in Yii 2

Created about a year ago by hemcHow-tos8 comments – viewed 13,584 times – ( +9 ) – version 2.0
In advance template there is already a file yii. And there is no need to run it as php, it is Linux script.
tags: cron, yii2, console

Using phpseclib with Yii

Created 2 years ago by nkdHow-tos8 comments – viewed 7,483 times – ( +2 ) – version 1.1
I installed phpseclib because I needed to do some AES encryption in my project. After all the hassle of installing php lib, I found out that Yii already has a security module (securityManager). I finally decided to keep using phpseclib because it has one big advantage over Yii securityManager module, it does not requite mcrypt to be installed in the phpserver!
tags: security

Escape from Default's Yii2 Delete Confirm Box

Created about a year ago by Antonio RamirezHow-tos8 comments – viewed 7,838 times – ( +6 ) – version 2.0
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.

Single table inheritance

Created 4 years ago by samdarkHow-tos8 comments – viewed 26,400 times – ( +40 ) – version 1.1
Relational databases do not support inheritance so if we need to represent it, we have to somehow store meta info while keeping performance by minimizing JOINs. One way to solve this problem is using single table inheritance. All fields for the whole class tree are stored in a single table. Class name is stored in the type field of the same table.

Integrating HybridAuth directly into Yii without an extension

Created 2 years ago by biz devHow-tos8 comments – viewed 29,295 times – ( +14 ) – version 1.1
This article tries to explain the steps required in integrating the HybridAuth into Yii directly, without using an extension.

Using Grunt for deploying client scripts

Created 2 years ago by Chris83How-tos8 comments – viewed 13,146 times – ( +11 ) – version 1.1
For a long time I have struggled to find a suitable tool for doing server tasks such as compiling LESS files, concatenating and minifying of JavaScript files and copying the minified JavaScript files. While most of these tasks can be done with Yii extensions I would still not recommend using them because it requires you to include these extensions in your project, and therefore also deploying them in your production environment.