Created
December 10, 2014 15:40
-
-
Save ChrisFrench/5b648b22b6ab2d1da4ed to your computer and use it in GitHub Desktop.
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 | |
namespace Api\Site\Controllers; | |
class Menu extends Auth { | |
public function getMenu() { | |
$array = $this->getInputs(); | |
$user = $this->app->get ( 'user'); | |
$results = $this->app->get('results'); | |
//do some ACL LOGIN etc to build a menu based on this user and the optional event | |
$menu = array(); | |
$menu[] = array('title' => 'Profile', 'http://ryst.cc/user'); | |
$menu[] = array('title' => 'Wristbands', 'http://ryst.cc/user/wristbands'); | |
$results['result'] = $menu; | |
$this->app->set('results', $results); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment