What I learned from Yii Blog Tutorial so far

I have developed some apps based on Yii but I still found that I haven’t used all the strong feature from Yii. I re-worked with Yii Blog Tutorial and just want to make a quick summary with Yii features.

What I learned from the Yii Blog Tutorial so far

1/ http://www.yiiframework.com/doc/blog/1.1/en/prototype.scaffold

We can scaffold the Model, Controller , not only to main controller , model folders but also to Modules folder

2/ http://www.yiiframework.com/doc/blog/1.1/en/prototype.auth

  • Hash way to save user password

  • Can Implement many UserIndentity ways like : Check Database, Facebook Login,…

3/ http://www.yiiframework.com/doc/blog/1.1/en/post.model

  • Good way to define rules for Tags and normalize Tags

  • Relations Method :

  • Access Related Object Information with condition , Comment::STATUS_ARRPOVED

  • Quick way to generate url of a post. Just like define the url of a model

  • Good way to store LookUp Table

4/ http://www.yiiframework.com/doc/blog/1.1/en/post.create

  • The Use of LookUp Table

  • Can set create time, author, other information with beforeSave() method

  • The way using AfterSave() and AfterFind() to update the frequency of Tags appear with old tags and new tags

5/ http://www.yiiframework.com/doc/blog/1.1/en/post.display

  • Way to throw 404 Error

  • Retrieve the post with condition Approve

6/ http://www.yiiframework.com/doc/blog/1.1/en/post.admin

  • Way to custom column for Search, Refine

  • Use CHTML::encode() to display text to prevent xss

  • Way to use AfterDelete() to update frequency of Tags

7/ http://www.yiiframework.com/doc/blog/1.1/en/comment.create

  • Way to Ajax Validation

  • Way to use SetFlash() and Error

8/ http://www.yiiframework.com/doc/blog/1.1/en/portlet.menu

  • Way to display widget Content Porlet , with the Content we want, recent comments, Tags Cloud

9/ http://www.yiiframework.com/doc/blog/1.1/en/final.url

  • Beautiful URL

  • Way to use UrlManager

10/ http://www.yiiframework.com/doc/blog/1.1/en/final.logging

  • Way to log errors

11/ http://www.yiiframework.com/doc/blog/1.1/en/final.deployment

  • Nothing special

12/ http://www.yiiframework.com/doc/blog/1.1/en/final.future

  • Using Theme, International , Cache

A nice way to summarise yii features

Thanks for the overview :D