I am new to php frameworks, it is said that php frameworks provide reusable code, more than code written in flat php, but in most php frameworks we write code in 3 sections like models, views, controller etc.
How that code is reusable, in another projects?
In flat php, we write code in one function and we can use it anywhere.
Jump to Post
You need to study object-oriented design and development a LOT more before you can deal with this. Consider PHP to be C++ for web programming. In any case, the answer to your question would require a 500 page book to cover in detail... :-(