step 8: making model for posts cakephp blog

step 8: making model for posts cakephp blog

To make the post model, make a file “/app/models/post.php" then copy & paste blow code into the file.

/app/models/post.php

   <?php
      class Post extends AppModel
      {
         var $name = 'Post';
      }
   ?>

Related Tutorial Examples

  1. step 5: making homepage for cakephp blog
  2. step 6: template setup for cakephp blog
  3. step 7: controller for posts cakephp blog
  4. step 9: view for posts cakephp blog cakephp examples
  5. step 10: making view post details for cakephp blog
  6. step 11: admin view posts for cakephp blog
  7. step 12: add post view controller cakephp blog
  8. MySQL IFNULL() Function Boolean Example
  9. MySQL IFNULL() Function NULL Value Example
  10. MySQL IF() Nested Function Example

No comments:

Post a Comment

leave your comments here..