Wiki

Sorted by viewsX
Displaying 531-540 of 750 result(s).

WordPress Role Based Authentication in Yii

Created about a year ago by Bob GTutorials0 comments – viewed 7,594 times – ( +4 / -1 ) – version 1.1
This tutorial is for people that are integrating Yii into WordPress. Meaning that WordPress is the host platform, and that Yii will be handling AR, CRUD, etc.

Simple Way to Upload and Save File

Created 7 months ago by Misbahul D MunirTutorials0 comments – viewed 7,583 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

Automatic Parameter Binding to POST vars in Yii2

Created about a year ago by aarondfrancisHow-tos2 comments – viewed 7,566 times – version 2.0
I wrote about this on my blog, but wanted to post it here too.
tags: yii2, controllers

Login Form With email or Whatever

Created about a year ago by nabil abdoualiHow-tos1 comment – viewed 7,534 times – ( -2 ) – version 1.1
Here is my solution to login with email or anything else This update works with database mysql You must generate the user model with GII

Adding Bash Command Completion for Yii Commands

Created 2 years ago by Dustin OpreaHow-tos0 comments – viewed 7,526 times – ( +3 ) – version 1.1
This article discusses the installation/configuration of the YiiBash project (https://github.com/dsoprea/YiiBash).

Using phpseclib with Yii

Created 2 years ago by nkdHow-tos8 comments – viewed 7,482 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

embed a view file of the class which implement the CAction.

Created 4 years ago by DavidhhuanTutorials1 comment – viewed 7,481 times – ( +1 / -1 ) – version 1.1
In Yii, we can define an action class and ask the controller to instantiate it. And we always create ourselves actions class in rootPath/protected/extensions, and the view file we called in the actions class always are located in rootPath/protected/views/ControllerNAME or rootPath/themes/ThemeNAME/ControllerNAME, then when we use the same actions class in different controllers, we have to copy it from one controller to the other controller, so we also need the "same" view file work for us, here is an example.
tags: actions, render, views

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

Created 6 months ago by hrnairHow-tos2 comments – viewed 7,462 times – ( +5 ) – version 2.0
This is as an extension of this wiki by Kartik V which shows to make different enableAutoLogin cookies for frontend and backend.

CGridView: Adding behaviors from configuration, and template items from behaviors to CGridView

Created 2 years ago by le_topTips0 comments – viewed 7,458 times – ( +5 ) – version 1.1
Changing the way a CGridView is rendered from the configuration file, or through behaviors specified at the moment it is used, is handy to extend a CGridView without creating tons of different classes for it. I am surprised that this is not in the default implementation, so I made my default CGridView implementation.

Catching bounce messages (NDR) and piping them to a Yii command

Created 2 years ago by bennounaTutorials0 comments – viewed 7,455 times – ( +2 ) – version 1.1
In order to avoid bounce messages and unsolicited registrations, most webapps send automatic activation emails upon user registration, and the account remain inactive as long as it is not activated. Better yet, you can periodically purge your data by removing accounts that have not yet been activated.