di = $di; } /** * @return mixed */ public function getDi() { return $this->di; } public function register(\Box_App &$app) { $app->get('/currency/manage/:code', 'get_manage', array('code'=>'[a-zA-Z]+'), get_class($this)); } public function get_manage(\Box_App $app, $code) { $this->di['is_admin_logged']; $guest_api = $this->di['api_guest']; $currency = $guest_api->currency_get(array('code'=>$code)); return $app->render('mod_currency_manage', array('currency'=>$currency)); } }