di = $di; } /** * @return mixed */ public function getDi() { return $this->di; } public function register(\Box_App &$app) { $app->get('/cart', 'get_cart', array(), get_class($this)); } public function get_cart(\Box_App $app) { return $app->render('mod_cart_index'); } }