CMSGoods.php 448 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Created by 上海互教教育科技有限公司.
  4. * User: 刘红伟
  5. * Date: 2016/7/19
  6. * Email: 454303753@qq.com
  7. * File:CMSGoods.php
  8. */
  9. class CMSGoods extends CActiveRecord
  10. {
  11. public function getDbConnection() {
  12. return Yii::app()->db251;
  13. }
  14. public static function model($className = __CLASS__){
  15. return parent::model($className);
  16. }
  17. public function tableName(){
  18. return "goods";
  19. }
  20. }