public function preinit() { parent::preinit(); session_name('sampleApp'); session_start(); if (session::logged_in()) { session::refresh(); } }
public static function init() { // Check Initialised if (self::$init) { return; } // Initialise Properties self::$init = true; // }
public static function init() { // Check Initialised if (self::$init) { return; } // Initialise Properties self::$init = true; // self::setRoute(kApp::getDefaultEvent()); self::$layout = kApp::getDefaultLayout(); self::$view = kApp::getDefaultView(); self::$restrict = 0; self::$render = true; }
<!-- Potassium Framework --> <?php // Enable Session //session_start(); // Include Library include "potassium/framework/library.php"; // Load Components includeDirectory("potassium/components/"); // Create Application kApp::init(); // Create Event kEvent::init(); if (isset($_GET['event'])) { kEvent::setRoute($_GET['event']); } // Load Controller kEvent::execute(); // Render Event kEvent::render();