public static function index()
 {
     $rules = ["id" => ['filter' => FILTER_VALIDATE_INT, 'options' => ['min_range' => 1]]];
     $data = filter_input_array(INPUT_GET, $rules);
     if (self::checkValues($data)) {
         echo ViewHelper::render("view/admin/uporabnik-detail.php", ["uporabnik" => UporabnikDB::get($data)]);
     } else {
         echo ViewHelper::render("view/admin/uporabnik-list.php", ["uporabniki" => UporabnikDB::getAll()]);
     }
 }
<?php

/**
 * Created by PhpStorm.
 * User: Urban
 * Date: 08-Feb-16
 * Time: 11:01 AM
 */
$uporabniki = UporabnikDB::getAll();
?>

<script type="text/javascript" src="<?php 
echo JS_URL . "scriptNovicaAdd.js";
?>
"></script>

<h1>Dodaj novico</h1>
<form action="<?php 
echo BASE_URL . "edit/novica/add";
?>
" method="post">
    <table class="table table-hover">
        <tr>
            <td> <p><label>Naslov novice: *</label></p> </td>
            <td> <input type="text" name="naslov" value="<?php 
echo $naslov;
?>
" autofocus required /> </td>
        </tr>
        <tr>
            <td> <p><label>Opis: </label></p> </td>