is this correct to pass the value ?
@Controller (Movies_genre.php) :
following lines only,
public function index($genre_type=NULL)
$data['movies_by_genre'] = $this->Model_movie_genre->movies_by_genre($genre_type);
I have
Error received :
A PHP Error was encountered
Severity: Notice
Message: Undefined index: movie_genre
Filename: views/view_movies_genre.php
Line Number: 13
Backtrace:
File: C:\xampp\htdocs\ciprojects\showtime\application\views\view_movies_genre.php
Line: 13
Function: _error_handler
File: C:\xampp\htdocs\ciprojects\showtime\application\controllers\Movies_genre.php
Line: 36
Function: view
File: C:\xampp\htdocs\ciprojects\showtime\index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: views/view_movies_genre.php
Line Number: 14
Backtrace:
File: C:\xampp\htdocs\ciprojects\showtime\application\views\view_movies_genre.php
Line: 14
Function: _error_handler
File: C:\xampp\htdocs\ciprojects\showtime\application\controllers\Movies_genre.php
Line: 36
Function: view
File: C:\xampp\htdocs\ciprojects\showtime\index.php
Line: 315
Function: require_once