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
Post a Comment