<?php use Fototea\config\FConfig; use Fototea\Models\Notification; use Fototea\Models\Project; use Fototea\Models\TmpProject; use Fototea\Models\User; use Fototea\Util\FAnalytics; use Fototea\App\App; ini_set('display_errors', 1); error_reporting(E_ERROR); // Auto-load require 'vendor/autoload.php'; $app = new App(); include 'scripts/libSM.php'; //unset($_SESSION['shopping-cart']); //use Fototea\Models\PuntoPagos; //$pp = new PuntoPagos(); // ////$pp->createTransaction('1111100000001', 10000); //$pp->getTransaction('N756GCCQT93EHUMA', '1111100000001', 10000); // //die('fin'); $request = $app->getRequest()->get('q'); $section_name = ''; if (isset($request)) { $_items = explode('/', $request); // print_r($_items); $section_name = $_items[0]; //unset($_items[0]); }
<?php require '../vendor/autoload.php'; use Fototea\App\App; ini_set('display_errors', 1); error_reporting(E_ERROR); $app = new App(); //Router cavernicola :D $actionsDir = $app->getConfig()->getBasePath() . DIRECTORY_SEPARATOR . 'actions' . DIRECTORY_SEPARATOR; $actionName = $app->getRequest()->get('action'); $target = $actionsDir . $actionName; $result = (include "{$target}"); $app->shutdown();