Login and Register working

This commit is contained in:
Deon George
2014-10-04 00:39:18 +10:00
parent c4a22dd45b
commit df7776931d
7 changed files with 16 additions and 81 deletions

View File

@@ -1,19 +1,23 @@
<?php defined('SYSPATH') or die('No direct script access.');
class Controller_Welcome extends Controller_TemplateDefault {
/**
* Main home page for un-authenticated users
*
* @package lnApp
* @category Controllers
* @author Deon George
* @copyright (c) 2009-2013 Deon George
* @license http://dev.leenooks.net/license.html
*/
class Controller_Welcome extends lnApp_Controller_Welcome {
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;
$this->template->content = View::factory('pages/welcome');
}
} // End Welcome
}
?>