public function on_page_load() { parent::on_page_load(); $page = $this->get_current_page(); if (!$page instanceof Model_Page_Front) { $this->_ctx->throw_404(__('Selected page in widget :widget_name not found', array(':widget_name' => $this->name))); } }
public function on_page_load() { parent::on_page_load(); $this->count_total(); }