/** * @before _secure, _admin */ public function websites($user_id) { $this->seo(array("title" => "View Users Websites", "keywords" => "admin", "description" => "admin", "view" => $this->getLayoutView())); $view = $this->getActionView(); $websites = Website::all(array("user_id = ?" => $user_id)); $view->set("websites", $websites); }
/** * @before _secure, _admin */ public function all() { $this->seo(array("title" => "Websites added", "keywords" => "admin", "description" => "admin", "view" => $this->getLayoutView())); $view = $this->getActionView(); $page = Shared\Markup::page(array("model" => "Website", "where" => array())); $websites = \Website::all(array(), array("title", "url", "id", "created"), "created", "desc", $page["limit"], $page["page"]); $view->set("websites", $websites)->set($page); }