public static function listar() { $hotel = new Hotel(); $hoteis = $hotel->listar(null, 'nome'); self::$variaveis = array('hoteis' => $hoteis); self::$corpo = "listar"; self::renderizar(self::$viewController); }
public static function hoteis() { $texto = new Texto(); $texto->selecionarPorId(12); $hotel = new Hotel(); $hoteis = $hotel->listar(null, "nome"); self::$corpo = "hoteis"; self::$variaveis = array('hoteis' => $hoteis, 'texto' => $texto); self::renderizar(self::$viewController); }