コード例 #1
0
ファイル: Menu.php プロジェクト: Workhaven/workhaven
 public function getData()
 {
     $data = array("user" => Auth::instance()->get_user(), "project" => $this->current_project(), "projects_count" => Model_Project::count_projects(), "clients_count" => Model_Client::count_clients(), "users_count" => ORM::factory('User')->count_all(), "latest_projects" => $this->latest_projects(), "image" => $this->current_image, "client" => $this->current_client);
     return $data;
 }
コード例 #2
0
ファイル: Clients.php プロジェクト: Workhaven/workhaven
 public function action_index()
 {
     $pagination = Pagination::factory(array('total_items' => Model_Client::count_clients()));
     $this->template->data["clients"] = $this->get_clients($pagination);
     $this->template->data["pagination"] = $pagination;
 }