request->segments; if (!isset($segments[0])) { die("Missing required parameters. Please specify a wizard step in the URL"); } if (!is_file(HOME . '/views/wizard/steps/' . $segments[0] . '.php')) { die("Invalid step requested. See the Wizard Help for more information"); } else { // Widgetize the requested wizard step App::Get()->WidgetizeView("/wizard/steps/" . $segments[0]); }