Ok, your user has chosen to delete his account. That's fine; let's handle how to make that work.
The complete source code for this recipe can be found in the
Chapter9/Recipe7 folder in the source code for this book.
Our final recipe will walk you through how to delete a user's account. This will be done by updating the
index.php file—for the last time—to the following content:
<?php session_start(); include 'Services/Twilio.php'; require("system/jolt.php"); require("system/pdo.class.php"); require("system/functions.php"); $_GET['route'] = isset($_GET['route']) ? '/'.$_GET['route'] : '/'; $app = new Jolt('site',false); $app->option('source', 'config.ini'); #$pdo = Db::singleton(); $mysiteURL = $app->option('site.url'); ...