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
- step 5: making homepage for cakephp blog
- step 6: template setup for cakephp blog
- step 7: controller for posts cakephp blog
- step 9: view for posts cakephp blog cakephp examples
- step 10: making view post details for cakephp blog
- step 11: admin view posts for cakephp blog
- step 12: add post view controller cakephp blog
- MySQL IFNULL() Function Boolean Example
- MySQL IFNULL() Function NULL Value Example
- MySQL IF() Nested Function Example
No comments:
Post a Comment
leave your comments here..