<?php

//視圖模型
class CategoryViewModel extends ExViewModel {
	
	protected $viewFields = array(
		'category' => array('*','_type' => 'LEFT'),
		'model' => array(
		'name' => 'modelname',//顯示字段name as model
		'tablename' => 'tablename',//顯示字段name as model
		'_on' => 'category.modelid = model.id',//_on 對應上面LEFT關聯條件
		),

	);
}

?>