<?php
class ArticleViewModel extends ViewModel {
    public $viewFields = array(
       'Article'=>array('id','name','title','cTime','categoryId','content','readCount','tags','commentCount','status'),
        'Category'  =>  array('title'=>'category', '_on'=>'Article.categoryId=Category.id')
    );
}
?>
