1
0

Namespace change + assets

This commit is contained in:
Christiaan Goossens 2017-02-23 10:31:05 +01:00
parent efa5baedb6
commit 36caeccb74
6 changed files with 26 additions and 27 deletions

View File

@ -11,6 +11,6 @@
"start": "php -S 0.0.0.0:8080 -t public public/index.php" "start": "php -S 0.0.0.0:8080 -t public public/index.php"
}, },
"autoload": { "autoload": {
"psr-4": {"InfD4p\\": "src/"} "psr-4": {"Inforbank\\": "src/"}
} }
} }

View File

@ -0,0 +1,18 @@
body {
margin: 50px 0 0 0;
padding: 0;
width: 100%;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
text-align: center;
color: #aaa;
font-size: 18px;
}
h1 {
color: #719e40;
letter-spacing: -3px;
font-family: 'Lato', sans-serif;
font-size: 100px;
font-weight: 200;
margin-bottom: 0;
}

View File

@ -12,7 +12,7 @@
* Jelmer Hinssen * Jelmer Hinssen
*/ */
namespace InfD4p\Application\API; namespace Inforbank\Application\API;
use \Slim\App; use \Slim\App;

View File

@ -12,7 +12,7 @@
* Jelmer Hinssen * Jelmer Hinssen
*/ */
namespace InfD4p\Application; namespace Inforbank\Application;
use \Slim\App; use \Slim\App;
@ -31,9 +31,6 @@ class Main
*/ */
public function __construct(App $app) public function __construct(App $app)
{ {
// Load the API handler for the Omnipay plugin
new API\Handler($app);
// Add the default view routes // Add the default view routes
$app->get('/[{name}]', function ($request, $response, $args) { $app->get('/[{name}]', function ($request, $response, $args) {
// Render index view // Render index view

View File

@ -72,7 +72,10 @@ $container['renderer'] = function ($c) {
* *
*/ */
new InfD4p\Application\Main($app); new Inforbank\Application\Main($app);
// Added API handler
new Inforbank\Application\API\Handler($app);
/** /**
* Bij het maken van dit object is in de class de __construct functie aangeroepen met de parameter $app. De functies die daar in staan zullen nu worden uitgevoerd. * Bij het maken van dit object is in de class de __construct functie aangeroepen met de parameter $app. De functies die daar in staan zullen nu worden uitgevoerd.

View File

@ -4,26 +4,7 @@
<meta charset="utf-8"/> <meta charset="utf-8"/>
<title>Slim 3</title> <title>Slim 3</title>
<link href='//fonts.googleapis.com/css?family=Lato:300' rel='stylesheet' type='text/css'> <link href='//fonts.googleapis.com/css?family=Lato:300' rel='stylesheet' type='text/css'>
<style> <link href='assets/css/demo.css' rel='stylesheet' type='text/css'>
body {
margin: 50px 0 0 0;
padding: 0;
width: 100%;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
text-align: center;
color: #aaa;
font-size: 18px;
}
h1 {
color: #719e40;
letter-spacing: -3px;
font-family: 'Lato', sans-serif;
font-size: 100px;
font-weight: 200;
margin-bottom: 0;
}
</style>
</head> </head>
<body> <body>
<h1>Slim</h1> <h1>Slim</h1>