Using VisualStudio Code to Sync Files in Turnkey Linux VM

To keep my working environment clean, I choose to use the ready-to-use Turnkey Linux Yii Framework VM in VirtualBox instead of creating everything from scratch in OSX. I plan to edit codes locally using Visual Studio Code and sync changes with VM by SFTP Protocol. Here is how I do.

Continue reading “Using VisualStudio Code to Sync Files in Turnkey Linux VM”

Change the Default Authentication from Text to Database in Yii

If you follow the instruction in Create a Web Application with yiic in TurnKey Linux to generate a web application, the default authentication is text-based. Let’s change to database-based.

Before continue reading, please follow Play Yii Framework with TurnKey Linux to create database table tbl_user and model User which we are going to use for authentication later. If you want to learn more about how authentication works in a generated web application, How Login is handled in Yii Framework will help.

Continue reading “Change the Default Authentication from Text to Database in Yii”