示例#1
0
 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;
 }
示例#4
0
<!--
	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();