AI智能回复搜索中,请稍后...
2 回答
TPL::assign('users_count', $this->model('system')->count('users')); TPL::assign('users_valid_email_count', $this->model('system')->count('users', 'valid_email = 1')); TPL::assign('question_count', $this->model('system')->count('question')); TPL::assign('answer_count', $this->model('system')->count('answer')); TPL::assign('question_count', $this->model('system')->count('question')); TPL::assign('question_no_answer_count', $this->model('system')->count('question', 'answer_count = 0')); TPL::assign('best_answer_count', $this->model('system')->count('question', 'best_answer > 0')); TPL::assign('topic_count', $this->model('system')->count('topic')); TPL::assign('attach_count', $this->model('system')->count('attach')); TPL::assign('approval_question_count', $this->model('publish')->count('approval', "type = 'question'")); TPL::assign('approval_answer_count', $this->model('publish')->count('approval', "type = 'answer'"));顺序执行,我就不备注了!