public function index() { $this->set('hubs', HubData::get_hub()); $this->render('hub/index.tpl'); }
public function delete_hub() { $hubid = $_GET[hubid]; HubData::delete_hub($hubid); $this->set('hub', HubData::get_hub()); $this->show('hub/hub_index.tpl'); }