This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
tech2018:edit_account_controller [2018/05/24 09:14] Gianluca Pelliccioli |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== Edit_account_data FORM CONTROLLER ===== | ||
| - | |||
| - | < | ||
| - | <?php if ( ! defined(' | ||
| - | |||
| - | class Account_change extends CI_Controller { | ||
| - | |||
| - | public function __construct() | ||
| - | { | ||
| - | parent:: | ||
| - | $this-> | ||
| - | } | ||
| - | |||
| - | |||
| - | /** | ||
| - | * Index Page for this controller. | ||
| - | */ | ||
| - | public function index() | ||
| - | { | ||
| - | |||
| - | //POST VALUES | ||
| - | if($this-> | ||
| - | $post_data = $this-> | ||
| - | $save_state = $this-> | ||
| - | } | ||
| - | |||
| - | //based on save do var update | ||
| - | if($save_state){ | ||
| - | if($this-> | ||
| - | $data[' | ||
| - | $this-> | ||
| - | } | ||
| - | |||
| - | //handle errors according to business logic | ||
| - | $result = true; | ||
| - | $message = ''; | ||
| - | |||
| - | $return = array( | ||
| - | ' | ||
| - | ' | ||
| - | ); | ||
| - | |||
| - | $this-> | ||
| - | |||
| - | } | ||
| - | |||
| - | } | ||
| - | |||
| - | </ | ||
| - | |||
| - | [[tech2018: | ||