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

Comments

Popular posts from this blog

Call PHP Function In JavaScript Using Ajax

List of Post Category Wise in wordpress