Last active
April 2, 2017 20:17
-
-
Save hgraca/2813548afd66d2c01d50602384634651 to your computer and use it in GitHub Desktop.
MVP snippet used in my blog post about MVC and variants
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MyPresenter | |
// ... | |
public function showUsers() | |
{ | |
// ... | |
$data = $this->accountManager->getUserDetails($from = 10, $to = 20); | |
$this->view->bind('list', $data); | |
// ... | |
} | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment