Framwork PHP Paling Ringan
Mengunakan F3 Framwork
https://fatfreeframework.com/
Contoh :
<?php
require 'vendor/autoload.php';
$f3 = \Base::instance();
$f3->route(
'GET /',
function () {
echo 'Hello, world!';
}
);
$f3->route(
'GET /tentang',
function ($f3) {
echo 'Saya adalah Ullil';
}
);
$f3->run();
Agar Routing Nya Jalan, Buat Juga File .htaccess
RewriteEngine On
RewriteRule ^(app|dict|ns|tmp)\/|\.ini$ - [R=404]
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L,QSA]
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
Lanjut Part : 1
Jam : 17:05:47
Durasi Part : 0:0:1
Durasi Total : 0:0:1
Punya Pertanyaan , Silahkan Whatsapp Langsung
Muhammad Ullil Fahri
WA : 089696380422
Tautan WA : https://wa.me/message/SG4YA2XQP5FPE1
Muhammad Ullil Fahri
WA : 089696380422
Tautan WA : https://wa.me/message/SG4YA2XQP5FPE1