Add basic(!) html sites to display project information

This commit is contained in:
Karsten Heiken
2011-05-19 18:29:21 +02:00
parent 6697265571
commit 6452d6313a
8 changed files with 268 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
<?php
/**
* Configurations are used to store different variations of the same project.
*
* @author Karsten Heiken, karsten@disposed.de
*/
class Configurations extends CI_Controller {
/**
* Constructor.
*/
public function __construct() {
parent::__construct();
$this->load->model('configuration');
// load language file
// $this->lang->load(strtolower($this->router->class));
}
/**
* Get a specific configuration from the database.
*
* @param string $config_id The configuration id to get.
*/
public function detail($config_id) {
$configs = $this->configuration->get($config_id);
$this->load->view('web/configurations/detail', $configs);
}
}