Skip to content

Commit

Permalink
changed redirect to users after a post
Browse files Browse the repository at this point in the history
  • Loading branch information
grantelgin committed Nov 4, 2012
1 parent 80c7125 commit 1d3318d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion p2.grantelgin.com/controllers/c_posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ public function p_add()
DB::instance(DB_NAME)->insert("locations", $location);
DB::instance(DB_NAME)->insert('posts', $comment);

echo "Your post has been added. <a href='/posts/add'>Add another post.</a>";
Router::redirect("/posts/users");
#echo "Your post has been added. <a href='/posts/add'>Add another post.</a>";
}

public function index()
Expand Down

0 comments on commit 1d3318d

Please sign in to comment.