123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php
- namespace common\models;
- use Yii;
- /**
- * This is the model class for table "{{%aboutwe}}".
- *
- * @property string $id
- * @property string $address
- * @property string $tell
- * @property string $content
- * @property string $time
- * @property integer $email
- * @property integer $updated_at
- * @property integer $created_at
- */
- class Aboutwe extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%aboutwe}}';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['content'], 'string'],
- [[ 'updated_at'], 'integer'],
- [['address', 'tell', 'wechat','email','coordinate','company'], 'string', 'max' => 255],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'address' => 'Address',
- 'tell' => 'Tell',
- 'content' => 'Content',
- 'wechat' => 'Wechat',
- 'company' => 'Company',
- 'email' => 'Email',
- 'updated_at' => 'Updated At',
- 'coordinate' => 'Coordinate'
- ];
- }
- public static function getAboutwe(){
- $model = Aboutwe::find()->one();
- return $model;
- }
- }
|