Minor updates and enhancements to Table()

This commit is contained in:
Deon George
2013-05-14 23:55:30 +10:00
parent b65ddab2d0
commit 783964ee59
9 changed files with 159 additions and 22 deletions

View File

@@ -9,7 +9,7 @@
* @copyright (c) 2009-2013 Deon George
* @license http://dev.leenooks.net/license.html
*/
abstract class lnApp_Controller_TemplateDefault extends Controller_Template {
abstract class lnApp_Controller_TemplateDefault extends Kohana_Controller_Template {
/**
* @var object meta object information as per [meta]
*/
@@ -76,7 +76,7 @@ abstract class lnApp_Controller_TemplateDefault extends Controller_Template {
// Check user auth and role
if ($this->_auth_required()) {
if (Kohana::$is_cli)
if (PHP_SAPI === 'cli')
throw new Kohana_Exception('Cant run :method, authentication not possible',array(':method'=>$this->request->action()));
// If auth is required and the user is logged in, then they dont have access.