{php}
$school = new app\system\model\School;
$school = $school->where('status',1)->field('id,title')->all();
{/php}
{php}
$xq = new app\teach\model\Xueqi;
$xueqi = $xq->where('status',1)->order(['id'=>'desc'])->limit(5)->field('id,title')->select();
{/php}