用count函数不就行了
比如Article模型$models=Article::findAll();echocount($models);或者echoArticle::find()->all()->count();我用的yii2,yii1用法应该差不多,你自己注意下吧