/** * @before _secure, memberLayout */ public function index() { $this->seo(array("title" => "Dashboard", "view" => $this->getLayoutView())); $view = $this->getActionView(); $websites = Website::all(array("user_id = ?" => $this->user->id), array("*"), "created", "desc", 10, 1); $referers = Referer::all(array("user_id = ?" => $this->user->id), array("*"), "created", "desc", 10, 1); $view->set(array("websites" => $websites, "referers" => $referers)); }
/** * @before _secure, _admin */ public function all() { $this->seo(array("title" => "Manage FakeReferer URLs", "view" => $this->getLayoutView())); $view = $this->getActionView(); $page = RequestMethods::get("page", 1); $limit = RequestMethods::get("limit", 10); $count = \Referer::count(array()); $referers = \Referer::all(array()); $view->set(array("referers" => $referers, "page" => $page, "limit" => $limit, "count" => $count)); }