Created
November 15, 2012 20:30
-
-
Save TomHAnderson/4081065 to your computer and use it in GitHub Desktop.
Parsing a view templete and returning result
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
public function infiniteScroll($page) { | |
$view = $this->getServiceLocator()->get('View'); | |
$model = new ViewModel(); | |
$model->setTemplate('scripts/infinite-scroll/main.phtml'); | |
$model->setVariable('page', $page); | |
$model->setOption('has_parent', true); | |
return $view->render($model); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment