public function generateURL($action_name = null, array $params = array()) { return \ORC\Util\Url::generateURL($action_name, $params); }
protected function renderNextLink($action_name, array $params, \ORC\Util\Pagination $pagination) { if ($pagination->getPage() == $pagination->getTotalPage()) { return sprintf('<li class="disabled"><span aria-hidden="true">»</span></li>'); } else { return sprintf('<li><a href="%s" aria-label="后一页"><span aria-hidden="true">»</span></a></li>', Url::generateURL($action_name, $params + array('page' => $pagination->getPage() + 1))); } }