Add prototype for a settings page

This commit is contained in:
Karsten Heiken
2011-07-31 19:10:43 +02:00
parent 29f9424a66
commit c648715fd0
2 changed files with 74 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?php
/**
* @author Karsten Heiken, karsten@disposed.de
*/
class Settings extends CI_Controller {
/**
* Constructor.
*/
public function __construct() {
parent::__construct();
$this->load->model('program');
// load language file
$this->lang->load(strtolower($this->router->class));
}
/**
* Show a list of all available programs.
*/
public function index() {
$profile = $this->user->profile();
$profile_fields = array(
array('firstname', 'Vorname', 'text'),
array('lastname', 'Nachname', 'text'),
array('intitution', 'Institution', 'text'),
);
$tpl['profile'] = $profile;
$tpl['profile_fields'] = $profile_fields;
$this->load->view('user/settings', $tpl);
}
}