diff --git a/index.php b/index.php index aac636c..c72a724 100644 --- a/index.php +++ b/index.php @@ -1,16 +1,16 @@ get_prefix(); + //General Config File: + require_once('./assets/php/config.php'); //List of the tittles of the movies: - include_once($prefix.'showtimes/includes/loadFilms.php'); - $loadFilms = new loadFilms(); - $films = $loadFilms->getFilms(); + require_once($prefix.'panel_admin/includes/film_dao.php'); + $films = new Film_DAO("complucine"); + $films_array = $films->allFilmData(); + $tittles = array(); + foreach($films_array as $key => $value){ + $tittles[$key] = $value->getTittle(); + } ?> - print_head(); - ?> + print_head(); + ?>
- print_header(); - ?> + print_header(); + ?> +