Initial commit
This commit is contained in:
19
application/classes/Controller/Welcome.php
Normal file
19
application/classes/Controller/Welcome.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php defined('SYSPATH') or die('No direct script access.');
|
||||
|
||||
class Controller_Welcome extends Controller_TemplateDefault {
|
||||
protected $auth_required = FALSE;
|
||||
|
||||
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
|
Reference in New Issue
Block a user