I want to use controller for my home page, for this I changed in file routes.php default_controller at "home", created controller in file controllers/home.php with code:
public function _remap()
$data['layout'] = 'my_home_page';
$data['slides'] = $this->action_model->get_all_active_slides();
in file _layouts/my_home_page.php I got this:
<div class="container main_inner">
<?php echo fuel_var('body', 'Controller home page'); ?>
<?php echo $slides; ?>
I get the contents of the $slides, and interesting thing, fuel_var('body') returns the contents of the file views/home.php.
in file views/home.php I got just some text.
The problem appeared when changed language of the site (language_mode = 'segment'), if site url is my_site.com/de - I get only contents of the file views/home.php, tell me what could be wrong?
And by the way, I have long been interested in question, what is the best way to make controller responsible for displaying the home page?