Permalink
Browse files

created an index for controller

  • Loading branch information...
1 parent 6e531cf commit b0084775865eac7e97a19e5e3613f6c0a0c8ec63 @mariuz committed Aug 22, 2008
Showing with 4 additions and 0 deletions.
  1. +4 −0 app/controllers/posts_controller.php
@@ -2,5 +2,9 @@
class PostsController extends AppController {
var $name = 'Posts';
+
+ function index() {
+ $this->set('posts', $this->Post->find('all'));
+ }
}
?>

0 comments on commit b008477

Please sign in to comment.