Created
June 7, 2017 08:10
-
-
Save zhelinskyy/7ee8287172d85e255705e57b7b47c4af to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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