Commit 78dca1b7 authored by Fedrico Otaran's avatar Fedrico Otaran

cambio de resource a user para controller

parent d8ff02b7
<?php
class ResourceController {
class UserController {
public function __construct()
{
......
......@@ -3,7 +3,7 @@ ini_set('display_startup_errors',1);
ini_set('display_errors',1);
error_reporting(-1);
require_once('controller/ResourceController.php');
require_once('controller/UserController.php');
require_once('model/PDORepository.php');
require_once('model/ResourceRepository.php');
require_once('model/Resource.php');
......@@ -13,7 +13,7 @@ require_once('view/Home.php');
if (isset($_GET["action"]) && $_GET["action"] == 'users'){
(new ResourceController)->listResources();
(new UserController)->listResources();
} else {
(new ResourceController)->home();
(new UserController)->home();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment