public function get_protected(Box_App $app) { // call $app->getApiClient() method to validate if client is logged in $api = $app->getApiClient(); return $app->render('mod_example_index', array('show_protected' => true)); }