Skip to content

Instantly share code, notes, and snippets.

@beinoriusju
Last active April 9, 2018 17:58
Show Gist options
  • Save beinoriusju/b3b87c6a4deccda36e3c9e58a040ff13 to your computer and use it in GitHub Desktop.
Save beinoriusju/b3b87c6a4deccda36e3c9e58a040ff13 to your computer and use it in GitHub Desktop.
public function index() {
if (!isset($this->request->get['module_id'])) {
$module_id = $this->addModule();
$this->response->redirect($this->url->link('extension/module/age_restriction','&user_token='.$this->session->data['user_token'].'&module_id='.$this->db->getLastId()));
} else {
$this->editModule($this->request->get['module_id']);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment