Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save zhelinskyy/835f0b27003817e534a1f217a4877028 to your computer and use it in GitHub Desktop.

Select an option

Save zhelinskyy/835f0b27003817e534a1f217a4877028 to your computer and use it in GitHub Desktop.
<?php if (!defined('BASEPATH'))
exit('No direct script access allowed');
/**
* @author ([email protected])
* @copyright 2017 CodeIgniter
*/
class Register extends Public_Controller
{
public function __construct()
{
parent::__construct();
}
// на /register грузиться index по замовчуванню
public function index()
{
//загружаєм вид registered і передаєм в нього з поста дані $this->input->post('userName') і в registered вже використовуєм змінну $userName
$this->load->view('registered','userName'=>$this->input->post('userName'), true);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment