Blog

Pérégrination web d'un développeur web

Catégories

  • PHP 7+ (2)
  • MVC (1)
  • PWA (1)
  • Web (1)
  • Electron (1)
  • Cordova (1)
  • Hello World (2)
  • micropython (3)
  • Python (1)

Derniers articles

  • ChatGPT et correction de la programmation
  • PWA (Progressive Web App) init, un exemple fonctionnel
  • Les éditeurs ou IDE indispensables
  • MVC from scratch using ToroPHP
  • TTGO oled ESP32 et SSD1306

Mots clés

  • IDE
  • ESP32
  • chatGPT
  • micropython
  • IA
  • éditeur
  • exemple
  • library
  • PWA
  • ToroPHP
  • éditeurs
  • oled

Derniers commentaires

Archives

  • janvier 2023 (1)
  • année 2021 (4)
  • total (5)

Meta

  • Administration
  • Fil des articles
  • Fil des commentaires

CATEGORIE : MVC

MVC from scratch using ToroPHP

  14 mars 2021 ·   Laurent ·   Aucun commentaire

Si vous aimez construire une application web "from scratch" il existe un router - ToroPHP - qui peut vous servir de dispatcher


<?php

class HomeHandler {
    function get() {
        include(CONTROLLER_PATH . '/home.php');
    }
}

Toro::serve(array(
    "/" => "HomeHandler",
));

https://github.com/MonkeyTime/ToroPHP-init

© https://monkeytime.be/fr