Skip to content

Instantly share code, notes, and snippets.

@JPBetley
Created October 22, 2013 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JPBetley/7106826 to your computer and use it in GitHub Desktop.
Save JPBetley/7106826 to your computer and use it in GitHub Desktop.
Basic Controller Setup
<?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