Implemented 1.2.0-RC5

Also moved index to fuzeworks.php and added some variables to templates.
This commit is contained in:
Abel Hoogeveen 2019-09-18 17:34:19 +02:00
parent dbbe6c9d16
commit 37d5ab4b17
No known key found for this signature in database
GPG Key ID: 96C2234920BF4292
6 changed files with 56 additions and 9 deletions

View File

@ -37,7 +37,7 @@
<html> <html>
<head> <head>
<title>FuzeWorks - Home</title> <title><?= $vars['serverName']; ?> - Home</title>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet"> <link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
<style> <style>
body { body {
@ -60,7 +60,7 @@
<div class='col-lg-12 col-md-4 col-sm-12'> <div class='col-lg-12 col-md-4 col-sm-12'>
<div id='contentPanel' class="panel panel-default" style='display:none'> <div id='contentPanel' class="panel panel-default" style='display:none'>
<div id='1' class="panel-body" style='display:none'> <div id='1' class="panel-body" style='display:none'>
<p class="lead">Welcome to FuzeWorks</p> <p class="lead">Welcome to <?= $vars['serverName']; ?></p>
<p> <p>
This website is currently under development. This website is currently under development.
</p> </p>

View File

@ -14,13 +14,12 @@
} }
], ],
"require": { "require": {
"php": ">=7.1.0", "php": ">=7.1.0",
"fuzeworks/webappcomponent": "1.2.0-RC3", "fuzeworks/webappcomponent": "1.2.0-RC5"
"ext-pdo": "*"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^7" "phpunit/phpunit": "^7"
}, },
"minimum-stability": "RC", "minimum-stability": "RC",
"prefer-stable": true "prefer-stable": true
} }

View File

@ -1,4 +1,4 @@
RewriteEngine On RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php?path=$1 [QSA,L] RewriteRule (.*) fuzeworks.php?path=$1 [QSA,L]

45
www/fuzeworks.php Normal file
View File

@ -0,0 +1,45 @@
<?php
/**
* FuzeWorks Application Skeleton.
*
* The FuzeWorks PHP FrameWork
*
* Copyright (C) 2013-2019 TechFuze
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
* @author TechFuze
* @copyright Copyright (c) 2013 - 2019, TechFuze. (http://techfuze.net)
* @license https://opensource.org/licenses/MIT MIT License
*
* @link http://techfuze.net/fuzeworks
* @since Version 0.0.1
*
* @version Version 1.2.0
*/
use FuzeWorks\Factory;
use FuzeWorks\WebComponent;
/** @var Factory $container */
$container = require(dirname(__DIR__) . '/application/bootstrap.php');
/** @var WebComponent $web */
$web = $container->web;
$web->routeWebRequest();

View File

@ -34,9 +34,12 @@
* @version Version 1.2.0 * @version Version 1.2.0
*/ */
/** @var \FuzeWorks\Factory $container */ use FuzeWorks\Factory;
use FuzeWorks\WebComponent;
/** @var Factory $container */
$container = require(dirname(__DIR__) . '/application/bootstrap.php'); $container = require(dirname(__DIR__) . '/application/bootstrap.php');
/** @var \FuzeWorks\WebComponent $web */ /** @var WebComponent $web */
$web = $container->web; $web = $container->web;
$web->routeWebRequest(); $web->routeWebRequest();