Example #1
0
 private function start()
 {
     if (empty($config)) {
         $this->configWrite();
     }
     DfApp::start($this->config, 'test/data');
     $this->assertEquals(DfApp::getPath(), $this->config['app_path']);
     $this->assertEquals(DfApp::getPath(true), $this->config['app_path'] . "/");
 }
Example #2
0
<?php

/**
 * Daitel Framework
 * Basic Application
 *
 * @author Nikita Fedoseev <*****@*****.**>
 * @link https://github.com/daitel/framework
 * @since 0.2.1
 */
//include framework
if (file_exists("../../framework/DfBase.php")) {
    require_once "../../framework/DfBase.php";
} elseif (file_exists("framework/DfBase.php")) {
    require_once "framework/DfBase.php";
} else {
    die("Unable to include framework");
}
//include config
require_once "app/config/config.php";
//start application
DfApp::start($config);