<?php

if (file_exists('Lock')) {
    exit('Example disabled. Remove Lock file to enable.');
}
require '..' . DIRECTORY_SEPARATOR . 'Bootstrap.php';
// date_default_timezone_set('UTC');
// mb_internal_encoding('UTF-8');
$configuration = array('AppName' => 'Facula Demo', 'AppVersion' => '0.0.0', 'Common' => array('CookiePrefix' => '_facula_'), 'UsingCore' => array('cache' => '\\Facula\\Core\\Cache'), 'Namespaces' => array(), 'Packages' => array(), 'Paths' => array(), 'Core' => array());
Facula\Framework::run($configuration);
Facula\Framework::core('response')->setContent('Hello Word!');
Facula\Framework::core('response')->send();
// See http response header for changes
Exemplo n.º 2
0
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with Facula Framework. If not, see <http://www.gnu.org/licenses/>.
 *
 * @author     Rain Lee <*****@*****.**>
 * @copyright  2015 Rain Lee
 * @package    Facula
 * @version    0.1 alpha
 * @see        https://github.com/raincious/facula FYI
 *
 */
/**
 * Check if example has disabled
 */
if (file_exists('..' . DIRECTORY_SEPARATOR . 'Lock')) {
    exit('Example disabled. Remove Lock file to enable.');
}
/**
 * Require the framework
 */
require '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Bootstrap.php';
/**
 * Require the framework configuration file
 */
require 'privated' . DIRECTORY_SEPARATOR . 'Configurations' . DIRECTORY_SEPARATOR . 'Primary.php';
/**
 * Wake up the framework using the configuration
 */
Facula\Framework::run($cfg);
Exemplo n.º 3
0
<?php

if (file_exists('Lock')) {
    exit('Example disabled. Remove Lock file to enable.');
}
require '..' . DIRECTORY_SEPARATOR . 'Bootstrap.php';
Facula\Framework::run();
Facula\Framework::core('response')->setContent('Hello Word!');
Facula\Framework::core('response')->send();