Ejemplo n.º 1
0
<?php

use ChickenWire\Core\ChickenWire;
use ChickenWire\Request\Format;
// Set application namespace
ChickenWire::set("applicationNamespace", "WipkipAdmin");
// Set PHP extension
ChickenWire::set("phpExtension", "php");
// Make it so that extensions in urls are more important than accept headers
ChickenWire::set("extensionOverridesAcceptHeaders", true);
// Set the default output format
ChickenWire::set("defaultFormat", Format::HTML());
ChickenWire::set("defaultCharset", "utf-8");
// Set the default output formats for routes
ChickenWire::set("defaultRouteFormats", array(Format::HTML(), Format::JSON()));
// Set locations for static assets
ChickenWire::set("pathCSS", "static/css");
ChickenWire::set("pathJavascript", "static/js");
ChickenWire::set("pathImages", "static/images");
// Set whether to use absolute URLs
ChickenWire::set("useAbsoluteUrls", false);
// Memory cache (http://www.php.net/manual/en/book.memcache.php)
ChickenWire::set("memCache", "localhost:11211");
// Logging
if (ChickenWire::get("environment") == "development") {
    ChickenWire::set("log", "FireBug");
}