Video.class.php 475 Bytes
<?php
/**
 * 默认控制器
 */
class Controller_Video extends Controller_Abstract
{
    public function indexAction()
    {
        $tag = '视频';
        $total = Facade_News::getTotal($tag);
        $page = new Lib_Helper_Pagination($total, 24);
        list($offset, $limit) = $page->getLimit();
        $list = Facade_News::getVideoList($tag, $offset, $limit);
        $this->_view['pagination'] = $page->getPagination();
        $this->_view['list'] = $list;
    }
}