model view controller - Simple MVP example with PHP -


i know how work mvc model, don't have idea how work mvp. read differences between them don't know how accomplish it.

the difference twofold:

  • view passive , unaware of model
  • presenter (controller) changes state of model, reads information , passes view

public function showusers() {     // -- snip     $data = $accountmanager->getuserdetails($from = 10, $to = 20);     $view->bind('list', $data);     // -- snip } 

this simplified example of presenter's method. here old answer, briefly explaining differences between mvc-like patterns used in php.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -