Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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;
 }