This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/application/classes/Controller/Welcome.php

36 lines
814 B
PHP
Raw Normal View History

2010-11-29 22:41:08 +00:00
<?php defined('SYSPATH') or die('No direct access allowed.');
2010-08-21 04:43:03 +00:00
2010-11-29 22:41:08 +00:00
/**
* OSB Main home page
2010-11-29 22:41:08 +00:00
*
* @package OSB
2010-11-29 22:41:08 +00:00
* @category Controllers
* @author Deon George
2013-03-19 22:35:19 +00:00
* @copyright (c) 2009-2013 Open Source Billing
* @license http://dev.osbill.net/license.html
2010-11-29 22:41:08 +00:00
*/
class Controller_Welcome extends Controller_TemplateDefault {
2011-07-13 22:59:32 +00:00
protected $auth_required = FALSE;
2013-05-10 10:48:10 +00:00
public function action_breadcrumb() {
$this->auto_render = FALSE;
$this->response->body(Session::instance()->get_once('breadcrumb'));
}
2010-11-29 22:41:08 +00:00
public function action_index() {
2012-11-09 23:13:57 +00:00
if (! Kohana::$config->load('config')->appname)
HTTP::redirect('guide/app');
$output = '';
$output = View::factory('pages/welcome');
Style::factory()
->type('file')
->data('media/css/pages/welcome.css');
$this->template->content = $output;
2010-11-29 22:41:08 +00:00
}
}
?>