Skip to content

Commit

Permalink
add new group page
Browse files Browse the repository at this point in the history
  • Loading branch information
furtherLee committed May 29, 2012
1 parent 97710f7 commit 0fd91af
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions app/controllers/GroupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ public function search(){
public function newGroup(){
}

public function showNewGroup(){
fAthorization::requireLoggedIn();
$this->render("Group/create", array(
"title" => "新建小组"
));
}

public function edit($id){
}

Expand Down
6 changes: 5 additions & 1 deletion app/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@
$app->get('/group/:id/', function($id){
$controller = new GroupController();
$controller->show($id);
echo "show group $id";
});

$app->get('/group/', function(){
$controller = new GroupController();
$controller->showNewGroup();
});

$app->post('/group/', function(){
Expand Down
Empty file added app/views/Group/create.html
Empty file.

0 comments on commit 0fd91af

Please sign in to comment.