public function film_management()
{

$this->config->load('grocery_crud');
$this->config->set_item('grocery_crud_dialog_forms',true);
$this->config->set_item('grocery_crud_dialog_color','orange darken-1');
$this->config->set_item('grocery_crud_dialog_text_color','white');

$crud = new grocery_CRUD();
$crud->set_theme('mdb'); // magic code
$crud->set_table('film');
$crud->set_subject('Film');
$crud->set_relation_n_n('actors', 'film_actor', 'actor', 'film_id', 'actor_id', 'fullname','priority');
$crud->set_relation_n_n('category', 'film_category', 'category', 'film_id', 'category_id', 'name');
$crud->unset_columns('special_features','description','actors');

$crud->fields('title', 'description', 'actors' , 'category' ,'release_year', 'rental_duration', 'rental_rate', 'length', 'replacement_cost', 'rating', 'special_features');

$output = $crud->render();

$this->_example_output($output);
}
View Film
Title:
 
Description:
 
Release year:
 
Rental duration:
 
Rental rate:
0.00
Length:
 
Replacement cost:
0.00
Rating:
G
Special features:
 
Last update:
2021-07-03 13:18:08
Actors:
AKROYD CHRISTIAN, AKROYD DEBBIE
Category:
Action, Animation, Children

Our Products


Team Members Addon for WPBakery Page Builder (formerly Visual Composer)

Google Maps With Multiple Markers Addon for WPBakery Page Builder

Image HotSpot Addon for WPBakery Page Builder (formerly Visual Composer)