public function search($query) { // Action logic goes here. } } The template First, they are able to pass data to the views, using Controller::set() . You can also .