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.
PHP
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.
How Login is handled in Yii Framework
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.
PHP: My Missing Manual
Play Yii Framework with TurnKey Linux
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.
Improve PHP Session Performance by Utilizing RAM
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.