For PHP development, I preferred to code in the host and run in the guest OS. It helps to keep the host clean and stable. Because PHP and APEX are both required, I switch from NetBeans to Visual Studio Code.
Continue reading “Prepare the LAMP Development Environment with VisualStudio Code and VirtualBox”
- Install and Configure Visual Studio Code and PHP Extensions
- Import and Configure TurnKey LAMP Stack
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”
If you follow the instruction in Create a Web Application with yiic in TurnKey Linux to generate a web application, we may customize error messages. How Login is handled in Yii Framework will help you to learn about how authentication works in a generated web application.
Continue reading “Custom Authentication Error Message 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”
When you browse http:// IP address /index.php?r=site/login in a web application generated by Gii (a Web-based code generator), what will happen? I am interested in the whole process which should help to learn how Yii works.
Continue reading “How Login is handled in Yii Framework”
When I am reading CRUD source code generated by Gii, I am confused with some PHP syntax and usage. Therefore, I create this post to help.
Continue reading “PHP: My Missing Manual”
Yii Framework is the base of ZurmoCRM. To learn more about customization, I begin to learn Yii. It is very different from CodeIgniter. More object-oriented features and style.
I test the Yii Framework in TurnKey Linux and add CRUD to the demo application.
Continue reading “Play Yii Framework with TurnKey Linux”
RAM is faster than disk. If you have enough RAM, it is a good idea to keep server session files in RAM to improve performance. All session contents will be removed when you restart Apache with php_mod.