- Motorola Edge 60 Fusion - nem csak a forma időtálló
- Apple iPhone Air - almacsutka
- Samsung Galaxy S23 Ultra - non plus ultra
- iPhone topik
- Hetekig bírják töltő nélkül a Huawei sportórái
- Samsung Galaxy S10 és S10+ duplateszt
- Poco F7
- Xiaomi 14T - nem baj, hogy nem Pro
- Hivatalos a OnePlus 13 startdátuma
- Kis méret, nagy változás a Motorolánál
Új hozzászólás Aktív témák
-
Brown ügynök
senior tag
válasz
Tele von Zsinór #9297 üzenetére
index.php
require_once __DIR__.'/System/plugins/Symfony/Component/ClassLoader/UniversalClassLoader.php';
use Symfony\Component\ClassLoader\UniversalClassLoader;
use System\Controller\PageRouteController;
$loader = new UniversalClassLoader();
$loader->registerNamespaces(array(
'System' => __DIR__ ,
));
$loader->register();
$c = new PageRouteController();
$c->getRouteAction();PageRouteController.php
namespace System\Controller;
use System\Controller\MainController;
class PageRouteController extends MainController
{
public function __construct (){
parent::__construct();
}
public function getRouteAction() {
$routes = $this->routes; // tömb az útvonalakkal
if ( $this->queryString) {
$VarsKey = $this->getRequestVars();
$this->uri = (mb_substr($this->uri, 0, -mb_strlen(strrchr($this->uri, "/" )) + 1) );
foreach ($VarsKey as $key => $val) {
$this->uri .= '{' . $key . '}';
}
}
foreach ($routes as $route) {
if ($this->uri == $route["uri"]) {
$controller = new $route["controller"];
$action = $route["action"];
return $controller->$action();
}
}
}
Új hozzászólás Aktív témák
- Motorola Edge 60 Fusion - nem csak a forma időtálló
- AMD K6-III, és minden ami RETRO - Oldschool tuning
- Telekom otthoni szolgáltatások (TV, internet, telefon)
- Gitáros topic
- gban: Ingyen kellene, de tegnapra
- Bambu Lab 3D nyomtatók
- Akciókamerák
- PlayerUnknown’s Battlegrounds
- Gyúrósok ide!
- E-roller topik
- További aktív témák...
- 157 - Lenovo LOQ (15ARP9) - AMD Ryzen 7 7435HS, RTX 4060
- Apple iPhone SE 16GB, Kártyafüggetlen, 1 Év Garanciával
- ÁRGARANCIA!Épített KomPhone Ryzen 5 7500F 32/64GB RAM RX 7800 XT 16GB GAMER PC termékbeszámítással
- GYÖNYÖRŰ iPhone 12 mini 128GB Black -1 ÉV GARANCIA - Kártyafüggetlen, MS3328, 94% Akkumulátor
- Apple iPhone 13 Pro 128GB,Adatkabel,12 hónap garanciával
Állásajánlatok
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest
Cég: CAMERA-PRO Hungary Kft.
Város: Budapest