最赞回答 / 慕粉1134275780
public function getExtend() { //一对一使用hasOne return $this->hasOne(PostExtendModel::className(),['post_id'=>'id']); }一对一的关系使用了hasMany所以次数不变
2017-09-25
最赞回答 / hao1233978078
<?phpuse yii\helpers\Url;?><div class="panel"> <!-- 只言片语 --> <div class="panel-title box-title"> <span><strong>只言片语</strong></span> <span class="pull-right"><a href="#" class="fo...
2017-09-12