note 130577 added to class.yaf-router

From: Date: Thu, 18 Dec 2025 11:28:40 +0000
Subject: note 130577 added to class.yaf-router
Groups: php.notes 
Request: Send a blank email to php-notes+get-222460@lists.php.net to get a copy of this message
exemple de index.php pour un routeur <?php include "./config/config.inc.php"; spl_autoload_register(function ($class) { $path = $class; if (DIRECTORY_SEPARATOR === '/') { $path = str_replace('\\', '/', $class); } $include = HOME . ".." . DIRECTORY_SEPARATOR . $path . '.php'; if (file_exists($include)) require $include; else echo '<pre>' . $class . PHP_EOL . $include . PHP_EOL . 'not found' . '</pre>'; }); $router = new \system\Router(); $router->route(); ?> ---- Server IP: 206.189.2.9 Probable Submitter: 2001:660:7220:385:193:52:103:33 ---- Manual Page -- https://php.net/manual/en/class.yaf-router.php Edit -- https://main.php.net/note/edit/130577 Del: integrated -- https://main.php.net/note/delete/130577/integrated Del: useless -- https://main.php.net/note/delete/130577/useless Del: bad code -- https://main.php.net/note/delete/130577/bad+code Del: spam -- https://main.php.net/note/delete/130577/spam Del: non-english -- https://main.php.net/note/delete/130577/non-english Del: in docs -- https://main.php.net/note/delete/130577/in+docs Del: other reasons-- https://main.php.net/note/delete/130577 Reject -- https://main.php.net/note/reject/130577 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#222460) next »