Skip to content

Instantly share code, notes, and snippets.

View luebbert42's full-sized avatar

Dorthe Luebbert luebbert42

  • Cologne, Germany
View GitHub Profile
<?php
require 'vendor/autoload.php';
// Verzeichnis für Views (Templates)
Flight::set('flight.views.path', 'templates');
// Route: /hallo → rendert hallo.php
Flight::route('/hallo', function () {
Flight::render('hallo.php');
});
{
"name": "informatik/quizzy",
"description": "Ein kleines SQLite-Quiz mit PHP",
"type": "project",
"autoload": {
"psr-4": {
"flight\\": "flight/"
}
},
"require": {
*******HEADER*******
<script src="app.hronlinemanager.com/js/gehaltsreporter/jquery-ui/jquery-ui.js"></script>
<script src="app.hronlinemanager.com/js/gehaltsreporter/jquery-validation/dist/jquery.validate.min.js"></script>
<script src="app.hronlinemanager.com/js/gehaltsreporter/jquery.gehaltsreporter.js"></script>
<script src="app.hronlinemanager.com/js/jquery.number.min.js"></script>
*******BODY*******
@luebbert42
luebbert42 / LinksRejectJs2014.md
Last active August 29, 2015 14:06
Linkschleuder RejectJS, Berlin, 2014
# http://marvelley.com/2012/12/20/symfony2-json-responses-for-xhr-errors-and-authentication-failures/
parameters:
acme.demo.xhr_core_exception_listener.class: Acme\DemoBundle\Listener\XHRCoreExceptionListener
acme.demo.xhr_authentication_success_handler.class: Acme\DemoBundle\Handler\XHRAuthenticationSuccessHandler
acme.demo.xhr_authentication_failure_handler.class: Acme\DemoBundle\Handler\XHRAuthenticationFailureHandler
options:
services:
acme.demo.xhr_core_exception_listener:
class: "%acme.demo.xhr_core_exception_listener.class%"