Exemplo n.º 1
0
 public static function init($document = NULL, $http = '')
 {
     if (!isset($_SESSION)) {
         session_start();
     }
     self::$document = $_SERVER['DOCUMENT_ROOT'] . '/';
     if ($document !== NULL) {
         self::$document .= rtrim($document, '/') . '/';
     }
     self::$http = rtrim($http, '/') . '/';
     self::$classes = explode(', ', self::$class_list);
     /*foreach ($classes as $c) {
     			self::getClass(trim($c));
     		}*/
 }
Exemplo n.º 2
0
<?php

error_reporting(E_ALL);
require_once 'classes/phptoolkit.php';
phptoolkit::init();
phptoolkit::$http = 'http://minet.com.do/kola/';
data::connect('sqlite', 'test.db');