Skip to content

Instantly share code, notes, and snippets.

@beinoriusju
Last active April 16, 2018 18:21
Show Gist options
  • Save beinoriusju/a8318c3a9cd1f29b142967b51b8e1073 to your computer and use it in GitHub Desktop.
Save beinoriusju/a8318c3a9cd1f29b142967b51b8e1073 to your computer and use it in GitHub Desktop.
<?php
class ControllerExtensionModuleAgeRestriction extends Controller {
public function index($setting = null) {
if ($setting && $setting['status']) {
$data = array();
$data['message'] = sprintf($setting['message'], $setting['age']);
$data['age'] = $setting['age'];
$data['redirect_url'] = $setting['redirect_url'];
return $this->load->view('extension/module/age_restriction', $data);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment