%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/tjamichg/cursos.tjamich.gob.mx/src/Chamilo/CoreBundle/Controller/
Upload File :
Create Path :
Current File : /home/tjamichg/cursos.tjamich.gob.mx/src/Chamilo/CoreBundle/Controller/LegacyController.php

<?php
/* For licensing terms, see /license.txt */

namespace Chamilo\CoreBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

/**
 * Class LegacyController
 * Manages the chamilo pages starting with Display::display_header and $tpl = new Template();.
 *
 * @package Chamilo\CoreBundle\Controller
 *
 * @author Julio Montoya <gugli100@gmail.com>
 */
class LegacyController extends Controller
{
    public $section;

    /**
     * @param string $name
     *
     * @return Response
     */
    public function classicAction($name, Request $request)
    {
        // get.
        $_GET = $request->query->all();
        // post.
        $_POST = $request->request->all();

        $rootDir = $this->get('kernel')->getRealRootDir();

        $home = $this->generateUrl('home');
        $home = str_replace('web/app_dev.php/', '', $home);
        $home .= 'main/'.$name;

        return $this->redirect($home);
    }
}

Zerion Mini Shell 1.0