Updates to invoice display
This commit is contained in:
@@ -18,7 +18,7 @@ class Controller_lnApp_Login extends Controller_TemplateDefault {
|
||||
// If user already signed-in
|
||||
if (Auth::instance()->logged_in()!= 0) {
|
||||
// Redirect to the user account
|
||||
Request::current()->redirect('welcome/index');
|
||||
Request::current()->redirect('user/welcome');
|
||||
}
|
||||
|
||||
// If there is a post and $_POST is not empty
|
||||
@@ -35,7 +35,7 @@ class Controller_lnApp_Login extends Controller_TemplateDefault {
|
||||
Request::current()->redirect($redir);
|
||||
|
||||
} else
|
||||
Request::current()->redirect('welcome/index');
|
||||
Request::current()->redirect('user/welcome');
|
||||
|
||||
} else {
|
||||
SystemMessage::add(array(
|
||||
|
25
application/classes/controller/user/welcome.php
Normal file
25
application/classes/controller/user/welcome.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||||
|
||||
/**
|
||||
* lnApp Main home page
|
||||
*
|
||||
* @package lnApp
|
||||
* @subpackage Page/Home
|
||||
* @category Controllers
|
||||
* @author Deon George
|
||||
* @copyright (c) 2010 Deon George
|
||||
* @license http://dev.leenooks.net/license.html
|
||||
*/
|
||||
class Controller_User_Welcome extends Controller_TemplateDefault {
|
||||
protected $auth_required = TRUE;
|
||||
|
||||
public function action_index() {
|
||||
$ao = ORM::factory('account',Auth::instance()->get_user()->id);
|
||||
|
||||
Block::add(array(
|
||||
'title'=>sprintf('%s: %s %s',$ao->accnum(),$ao->first_name,$ao->last_name),
|
||||
'body'=>'Please select from the tree on the left',
|
||||
));
|
||||
}
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user