Friday, April 6, 2012

MVC rule

1. mySQL tables will always be lowercase and plural e.g. posts, books
2. Models will always be singular and first letter capital e.g. Post, Book
3. Controllers will always have “Controller” appended to them. e.g. PostController, BookController
4. Views will have plural name followed by action name as the file. e.g. posts/view.php, books/buy.php

1. Controller  => accept url request 

2. modal  => database operation 

3. view  => design

No comments:

Post a Comment

If you Satisfied , Please Leave a comment