git clone https://github.com/Usbac/wolff.git
composer create-project usbac/wolff
app > languages > en > home.php1 2 3 4 5 6 7 8 9 10 11 12 13 14‹?php return [ 'title' => 'Wolff', 'meta' => 'Wolff - Framework', 'msg' => 'Small PHP framework' ];
Create a language file (Optional)
app > controllers > home.php1 2 3 4 5 6 7 8 9 10 11 12 13 14‹?php namespace Controller; use Wolff\Core\{Language, View}; class Home { public function index($req, $res) { $data = Language::get('home'); View::render('home', $data); } }
Create a controller
app > views > home.wlf1 2 3 4 5 6 7 8 9 10 11 12 13 14<!DOCTYPE html> <head> <title>{{ $meta }}</title> </head> <body> <h2>{{ $title }}</h2> <p>{{ $msg }}</p> </body> </html>
Design the view
Changelog:
Wolff\Core\DB
class not working with conditions.Changelog:
init
method of the Wolff\Core\Config
class not throwing the right exception.getAllowedIPs
and removeAllowedIP
methods of the Wolff\Core\Maintenance
class not throwing the right exception.Changelog:
php
and html
extensions.relativePath
function to the standard library.Changelog:
port
option to the database constructor.Requests and questions can be send to the email [email protected], you will be contacted shortly.
Any contribution or support to this project in the form of a pull request will be highly appreciated. This can be done in both of the official repositories wolff and wolff-framework.