A question about CActiveRecord

In the blog application.

actionCreate(){

$model=new Post;

}

actionUpdate(){

$model=Post::model();

}

I want know what the different ‘$model=new Post’ from ‘$model=Post::model()’

If I write this:

actionCreate(){

$modelPost::model();

}

this code will be wrong?And Why?What’s wrong problem.

I just did it,it’s right.

Post::model() always returns the same Post instance. Take a look at the documentation and this forum topic.