Browse files

http://book.cakephp.org/view/335/create-a-posts-controller

  • Loading branch information...
1 parent b86ed46 commit 6e531cf4842b0da42150e9a00cd1e4131f51d485 @mariuz committed Aug 22, 2008
Showing with 12 additions and 0 deletions.
  1. +6 −0 app/controllers/posts_controller.php
  2. +6 −0 app/models/post.php
View
6 app/controllers/posts_controller.php
@@ -0,0 +1,6 @@
+<?php
+class PostsController extends AppController {
+
+ var $name = 'Posts';
+}
+?>
View
6 app/models/post.php
@@ -0,0 +1,6 @@
+<?php
+
+class Post extends AppModel {
+var $name = 'Post';
+}
+?>

0 comments on commit 6e531cf

Please sign in to comment.