Hirdetés
- AMD Ryzen 9 / 7 / 5 / 3 5***(X) "Zen 3" (AM4)
- Milyen CPU léghűtést vegyek?
- Hogy is néznek ki a gépeink?
- Socket AM5
- Ventilátorok - Ház, CPU (borda, radiátor), VGA
- VR topik (Oculus Rift, stb.)
- AMD K6-III, és minden ami RETRO - Oldschool tuning
- Házimozi haladó szinten
- Kezdő fotósok digitális fényképei
- Milyen billentyűzetet vegyek?
Ú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
- Apple iPhone 14 Pro 128GB, Kártyafüggetlen, 1 Év Garanciával
- ÁRGARANCIA!Épített KomPhone Ryzen 7 7800X3D 32/64GB RAM RTX 5070 12GB GAMER PC termékbeszámítással
- Új Asus 16 ROG WUXGA IPS 165Hz G-Sync i9-14900HX 32GB 1TB Nvidia RTX 4070 8GB 140W Win11 Garancia
- Apple iPhone 16 Pro Max Desert Titanium Titán dizájn, Pro kamera, 120 Hz ProMotion,90%,3 hó gari
- Lenovo Thinkpad T14 Gen 3, 1 Év Garanciával
Állásajánlatok
Cég: Promenade Publishing House Kft.
Város: Budapest
Cég: NetGo.hu Kft.
Város: Gödöllő