What is the origin of php controller in mvc pattern? -


what origin of controller in oop php application?

why if put url like:

www.mysite.com/index.php/controller=mycontrol&action=insert 

the application enters in controller class , uses insert function?

is controller particular keyword of php?

mvc software architecture - structure of system - separates domain/application/business (whatever prefer) logic rest of user interface. separating application 3 parts: model, view, , controller.

the model manages fundamental behaviors , data of application. can respond requests information, respond instructions change state of information, , notify observers in event-driven systems when information changes. database, or number of data structures or storage systems. in short, data , data-management of application.

the view provides user interface element of application. it'll render data model form suitable user interface.

the controller receives user input , makes calls model objects , view perform appropriate actions.

all in all, these 3 components work create 3 basic components of mvc.

reference mvc means


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -