Hola pateketrueke gracias por responder, mira que miré lo que me dijiste y lo hice pero me da este error:
Warning: dirname() expects exactly 1 parameter, 2 given in /var/www/html/amnesia_1_hmvc/index.php on line 15
NULL
acá esta el código:
Código PHP:
Ver original<?php
define("DS", DIRECTORY_SEPARATOR); try {
$file = APPLICATION_PATH
. DS
. str_replace("\\", DS
, $clase) . ".php"; require_once $file;
}
catch (Exception $ex) {
echo $ex->getMessage();
}
});
$bundle = (!empty($_GET['b'])) ?
ucwords($_GET['b']) . 'Bundle' : "FrontendBundle"; $controlador = (!empty($_GET['c'])) ?
ucwords($_GET['c']) . 'Controller' : "MainController"; $accion = (!empty($_GET['a'])) ?
$_GET['a'] : "index"; try {
$controlador = "Src\\". $bundle . "\\Controller\\" . $controlador;
$controlo = new $controlador();
$controlo->$accion();
} catch (Exception $ex) {
echo $ex->getMessage();
}
Decime si estoy mal, y que tengo que cambiar.
Saludos y espero sus respuestas..