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

31 lines
762 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
/**
2011-07-13 22:59:32 +00:00
* lnApp Main home page
2010-11-29 22:41:08 +00:00
*
2011-07-13 22:59:32 +00:00
* @package lnApp
2010-11-29 22:41:08 +00:00
* @subpackage Page/Home
* @category Controllers
* @author Deon George
* @copyright (c) 2010 Deon George
* @license http://dev.leenooks.net/license.html
*/
class Controller_Welcome extends Controller_TemplateDefault {
2011-07-13 22:59:32 +00:00
protected $auth_required = FALSE;
2010-11-29 22:41:08 +00:00
public function action_index() {
if (! Kohana::config('config.appname'))
Request::current()->redirect('guide/app');
2012-01-29 06:23:24 +00:00
// @todo This should be in the DB or something.
Request::current()->redirect('product/categorys');
2010-11-29 22:41:08 +00:00
}
2011-12-09 04:10:53 +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
}
?>