Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save zhelinskyy/7ee8287172d85e255705e57b7b47c4af to your computer and use it in GitHub Desktop.
Save zhelinskyy/7ee8287172d85e255705e57b7b47c4af 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 Service extends Public_Controller
{
public function __construct()
{
parent::__construct();
}
public function process(firstName, lastName){
//приймаємо дані
firstName = firstName;
lastName = lastName;
}
// на /register грузиться index по замовчуванню
public function index()
{
// передаємо в метод процесс дані
$this->process($this->input->get('first-name'),$this->input->get('last-name'));
//загружаєм вид registered
$this->load->view('registered');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment