1. Go to this page and download the library: Download vetalforge/jumpix-app library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
namespace App\Controllers;
use Jumpix\Http\Request;
use Jumpix\Http\Session;
class MainPageController extends Controller
{
public function __construct(Request $request, Session $session)
{
parent::__construct($request, $session);
}
public function index(): void
{
$this->render('main_page');
}
}
namespace App\Models;
use Jumpix\Models\Model;
class User extends Model
{
protected string $table = 'users';
}