Created
October 22, 2013 19:38
-
-
Save JPBetley/7106826 to your computer and use it in GitHub Desktop.
Basic Controller Setup
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 UserController extends BaseController { | |
protected $zab; | |
public function __construct(ZabbixWrapper $zab) | |
{ | |
$this->zab = $zab; | |
} | |
/** | |
* Use zab all you want | |
*/ | |
public function getServices() | |
{ | |
$services = $zab->getServices(); | |
return View::make('services.index', array('services' => $services)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment