hidden('token', ZN\Security::getCSRFTokenKey()); } /** * output * * Produces formatted output. * * @param mixed $data * @param array $settings = NULL * @param bool $content = false * * @return mixed */ function output($data, ?array $settings = NULL, bool $content = false) { return ZN\Output::display($data, $settings, $content); } /** * redirect * * Routes to the specified URI or URL. * * @param string $url = NULL * @param int $time = 0 * @param array $data = NULL * @param bool $exit = true * * @return void */ function redirect(?string $url = NULL, int $time = 0, ?array $data = NULL, bool $exit = true) { ZN\Response::redirect($url, $time, $data, $exit); } /** * Get data. * * @param string $string * @param array $data = [] * @param array $config = [] * * @return string */ function wizard(string $string, array $data = [], array $config = []) : string { return ZN\Wizard::data($string, $data, $config); }