CMSTerm.php 459 B

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