Beispiel #1
0
 * Register autoloaders.
 */
require 'autoload.php';
try {
    $dotenv = (new josegonzalez\Dotenv\Loader(ROOT . DS . '.env'))->parse()->toEnv();
} catch (RuntimeException $e) {
    die($e->getMessage());
} catch (Exception $e) {
    // do nothing (env vars setup on server)
}
/**
 * Define extra functions.
 */
require CAKE . 'basics.php';
require 'functions.php';
Cake\Routing\Router::reload();
/**
 * Set the application's default configurations.
 */
Cake\Core\Configure::write(['debug' => file_exists(ROOT . DS . '.debug') or env('DEBUG'), 'App' => include CONFIG . 'application.php', 'Path' => include CONFIG . 'paths.php', 'Security' => include CONFIG . 'security.php', 'Session' => include CONFIG . 'session.php', 'Acl' => include CONFIG . 'acl.php']);
/**
 * Dispatcher configuration.
 */
require CONFIG . 'dispatcher.php';
/**
 * Engines configuration.
 */
require CONFIG . 'database.php';
require CONFIG . 'error.php';
require CONFIG . 'cache.php';
require CONFIG . 'email.php';
 *
 * Optimized for CakePHP
 * @author Florian Beisskammer (fm-labs)
 */
//!IMPORTANT!
define('K_TCPDF_EXTERNAL_CONFIG', true);
/**
 * Installation path (/var/www/tcpdf/).
 * By default it is automatically calculated but you can also set it as a fixed string to improve performances.
 */
//define('K_PATH_MAIN', '');
/**
 * URL path to tcpdf installation folder (http://localhost/tcpdf/).
 * By default it is automatically set but you can also set it as a fixed string to improve performances.
 */
define('K_PATH_URL', Cake\Routing\Router::url('/pdf'));
/**
 * Path for PDF fonts.
 * By default it is automatically set but you can also set it as a fixed string to improve performances.
 */
//define('K_PATH_FONTS', K_PATH_MAIN.'fonts/');
/**
 * Default images directory.
 * By default it is automatically set but you can also set it as a fixed string to improve performances.
 */
define('K_PATH_IMAGES', WWW_ROOT . 'img' . DS);
/**
 * Deafult image logo used be the default Header() method.
 * Please set here your own logo or an empty string to disable it.
 */
define('PDF_HEADER_LOGO', '');