Initial Membership Database Work

This commit is contained in:
Deon George
2014-07-09 13:04:56 +10:00
parent d4b3b0f9bc
commit febaad9ea6
37 changed files with 1395 additions and 834 deletions

View File

@@ -1,10 +1,18 @@
<?php defined('SYSPATH') or die('No direct script access.');
class Controller_Welcome extends Controller {
class Controller_Welcome extends Controller_TemplateDefault {
public function action_index()
{
HTTP::redirect(URL::link('','translate'));
public function action_index() {
if (! Kohana::$config->load('config')->appname)
throw HTTP_Exception::factory(500,'Site not setup!');
$output = '';
$output = View::factory('pages/welcome');
Style::factory()
->type('file')
->data('media/css/pages/welcome.css');
$this->template->content = $output;
}
} // End Welcome