This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Symfony\Component\ClassLoader\UniversalClassLoader; | |
use Symfony\Component\Finder\Finder; | |
require_once __DIR__ . '/com.symfony/Symfony/Component/ClassLoader/UniversalClassLoader.php'; | |
$loader = new UniversalClassLoader(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.test_loader; | |
import java.util.Calendar; | |
import android.app.Activity; | |
import android.app.LoaderManager; | |
import android.app.LoaderManager.LoaderCallbacks; | |
import android.content.AsyncTaskLoader; | |
import android.content.Context; | |
import android.content.Loader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$root = dirname(__DIR__) . '/'; | |
/** @var $fw \Base */ | |
$fw = require $root . 'vendor/bcosca/fatfree/lib/base.php'; | |
$fw->set('CACHE', 'folder=' . __DIR__ . '/tmp/cache/'); | |
$fw->set('CASELESS', false); | |
$fw->set('DEBUG', 2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> | |
<channel> | |
<title>Blog title</title> | |
<link>http://127.0.0.1/tpl</link> | |
<description>534f.de Blog</description> | |
<pubDate>DATE</pubDate> | |
<item> | |
<title>TITLE</title> | |
<link>http://127.0.0.1/tpl/TITLE_SLUG</link> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$root = dirname(__DIR__); | |
require_once $root . '/vendor/autoload.php'; | |
$f3 = Base::instance(); | |
/** FRAMEWORK *************************************************************************************/ | |
$f3->set('AUTOLOAD', $root . '/app/Classes/'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class F3PHPUnitTest extends PHPUnit_Framework_TestCase { | |
public function test() { | |
$f3 = Base::instance(); | |
// Don't write to STDOUT | |
$f3->set('QUIET', true); | |
$f3->route('GET /path', function(){ echo 'TEXT'; }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once "../vendor/autoload.php"; | |
class ExtTemplate extends Template { | |
public function date($timestamp) { | |
return date('d-m-Y' , $timestamp); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require 'base.php'; | |
$f3 = Base::instance(); | |
/** | |
* @see https://github.com/bcosca/fatfree/issues/878 | |
*/ | |
$f3->route('GET /session/@backend', function(Base $f3, array $args){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2>somefile.html</h2> | |
<p>{{ time() }}</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require 'base.php'; | |
$f3 = Base::instance(); | |
$f3->DEBUG = 3; | |
$f3->UI = 'UI/'; | |
$f3->CACHE = 'folder=tmp/cache/'; | |
$f3->TEMP = 'tmp/temp/'; |
OlderNewer