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.