doushi3454 2013-12-19 12:47
浏览 22
已采纳

Idiorm查询计数

Count queries

A long time ago I think I was able to count the total queries made on a page with idiorm.

Now I can't find out how it's done. Any reference?

  • 写回答

1条回答 默认 最新

  • douyanzan9145 2013-12-22 19:04
    关注

    One can request the value of the session's Questions status variable:

    $questions = ORM::for_table(null)
                    ->raw_query('SHOW STATUS LIKE ?', ['Questions'])
                    ->find_one()
                    ['Value'];
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?