|
|
@ -10,35 +10,21 @@ use Symfony\Component\HttpFoundation\Response; |
|
|
|
use Symfony\Component\Routing\Annotation\Route; |
|
|
|
use Symfony\Component\Routing\Annotation\Route; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Class IndexController |
|
|
|
* Class IndexController. |
|
|
|
* author Julio Montoya <gugli100@gmail.com>. |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
class IndexController extends BaseController |
|
|
|
class IndexController extends BaseController |
|
|
|
{ |
|
|
|
{ |
|
|
|
/** |
|
|
|
/** |
|
|
|
* The Chamilo index home page. |
|
|
|
* Index home page. |
|
|
|
* |
|
|
|
* |
|
|
|
* @Route("/", name="home", methods={"GET", "POST"}, options={"expose"=true}) |
|
|
|
* @Route("/", name="home", methods={"GET", "POST"}, options={"expose"=true}) |
|
|
|
* @Route("/login", name="login", methods={"GET", "POST"}, options={"expose"=true}) |
|
|
|
* @Route("/login", name="login", methods={"GET", "POST"}, options={"expose"=true}) |
|
|
|
|
|
|
|
* @Route("/courses", name="courses", methods={"GET", "POST"}, options={"expose"=true}) |
|
|
|
|
|
|
|
* @Route("/sessions", name="sessions", methods={"GET", "POST"}, options={"expose"=true}) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function indexAction(): Response |
|
|
|
public function indexAction(): Response |
|
|
|
{ |
|
|
|
{ |
|
|
|
return $this->render( |
|
|
|
return $this->render('@ChamiloCore/Index/vue.html.twig'); |
|
|
|
'@ChamiloCore/Index/vue.html.twig', |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
'content' => '', |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function resources(): Response |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return $this->render( |
|
|
|
|
|
|
|
'@ChamiloCore/Index/vue.html.twig', |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
'content' => '', |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|