示例#1
0
 /**
  * @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);
 }
示例#2
0
 /**
  * @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);
 }