Primordyx Framework Documentation

SafeDemoController.php

Safe Session Demonstration Controller

Example controller showing practical usage of the Safe session system. Demonstrates setting sample data and displaying Safe contents in a web application context.

ROUTES TO ADD:

// Add these routes to your router configuration: Router::get('/safe/demo/setup', [], function () {(new SafeDemoController())->setupSession();}); Router::get('/safe/demo/display', [], function () {(new SafeDemoController())->displaySession();}); Router::get('/safe/demo', [], function () {(new SafeDemoController())->index();});

USAGE:

  1. Visit /safe/demo/setup to populate session with demo data
  2. Visit /safe/demo/display to view all session contents
  3. Visit /safe/demo for overview and navigation links
Tags
author

Vern Six vernsix@gmail.com

since
1.0.0

Table of Contents

Classes

SafeDemoController

        
On this page

Search results