1.数据库里面创建posts表,表中author_id与users表中user_id关联
2.visit http://https://https://amyflash.com/yii/basic/web/index.php?r=gii create model: Post.php
3.visit http://myphp.com/yii/basic/web/index.php?r=posts/index