Reorg lnApp files
This commit is contained in:
parent
bb73fbbd17
commit
f0f6479ca2
@ -1,4 +1,4 @@
|
|||||||
<?php defined('SYSPATH') or die('No direct access allowed.');
|
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||||||
|
|
||||||
class Controller_Default extends Controller_lnApp_Default {}
|
class Controller_Default extends lnApp_Controller_Default {}
|
||||||
?>
|
?>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php defined('SYSPATH') or die('No direct access allowed.');
|
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||||||
|
|
||||||
class Controller_Login extends Controller_lnApp_Login {}
|
class Controller_Login extends lnApp_Controller_Login {}
|
||||||
?>
|
?>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php defined('SYSPATH') or die('No direct access allowed.');
|
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||||||
|
|
||||||
class Controller_Logout extends Controller_lnApp_Logout {}
|
class Controller_Logout extends lnApp_Controller_Logout {}
|
||||||
?>
|
?>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php defined('SYSPATH') or die('No direct access allowed.');
|
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||||||
|
|
||||||
class Controller_Media extends Controller_lnApp_Media {}
|
class Controller_Media extends lnApp_Controller_Media {}
|
||||||
?>
|
?>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php defined('SYSPATH') or die('No direct access allowed.');
|
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||||||
|
|
||||||
class Controller_Task extends Controller_lnApp_Task {}
|
class Controller_Task extends lnApp_Controller_Task {}
|
||||||
?>
|
?>
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* @copyright (c) 2010 Deon George
|
* @copyright (c) 2010 Deon George
|
||||||
* @license http://dev.leenooks.net/license.html
|
* @license http://dev.leenooks.net/license.html
|
||||||
*/
|
*/
|
||||||
class Controller_TemplateDefault extends Controller_lnApp_TemplateDefault {
|
class Controller_TemplateDefault extends lnApp_Controller_TemplateDefault {
|
||||||
public function __construct(Request $request, Response $response) {
|
public function __construct(Request $request, Response $response) {
|
||||||
if (Config::theme())
|
if (Config::theme())
|
||||||
$this->template = Config::theme().'/page';
|
$this->template = Config::theme().'/page';
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* @copyright (c) 2010 Open Source Billing
|
* @copyright (c) 2010 Open Source Billing
|
||||||
* @license http://dev.osbill.net/license.html
|
* @license http://dev.osbill.net/license.html
|
||||||
*/
|
*/
|
||||||
class Controller_Tree extends Controller_lnApp_Tree {
|
class Controller_Tree extends lnApp_Controller_Tree {
|
||||||
protected $auth_required = TRUE;
|
protected $auth_required = TRUE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* @copyright (c) 2010 Deon George
|
* @copyright (c) 2010 Deon George
|
||||||
* @license http://dev.leenooks.net/license.html
|
* @license http://dev.leenooks.net/license.html
|
||||||
*/
|
*/
|
||||||
abstract class Controller_lnApp_Default extends Controller {
|
abstract class lnApp_Controller_Default extends Controller {
|
||||||
/**
|
/**
|
||||||
* The variable that our output is stored in
|
* The variable that our output is stored in
|
||||||
*/
|
*/
|
@ -11,7 +11,7 @@
|
|||||||
* @license http://dev.leenooks.net/license.html
|
* @license http://dev.leenooks.net/license.html
|
||||||
* @also [logout]
|
* @also [logout]
|
||||||
*/
|
*/
|
||||||
class Controller_lnApp_Login extends Controller_TemplateDefault {
|
class lnApp_Controller_Login extends Controller_TemplateDefault {
|
||||||
protected $auth_required = FALSE;
|
protected $auth_required = FALSE;
|
||||||
|
|
||||||
public function action_index() {
|
public function action_index() {
|
@ -11,7 +11,7 @@
|
|||||||
* @license http://dev.leenooks.net/license.html
|
* @license http://dev.leenooks.net/license.html
|
||||||
* @also [login]
|
* @also [login]
|
||||||
*/
|
*/
|
||||||
class Controller_lnApp_Logout extends Controller {
|
class lnApp_Controller_Logout extends Controller {
|
||||||
public function action_index() {
|
public function action_index() {
|
||||||
# If user already signed-in
|
# If user already signed-in
|
||||||
if (Auth::instance()->logged_in()!= 0) {
|
if (Auth::instance()->logged_in()!= 0) {
|
@ -10,7 +10,7 @@
|
|||||||
* @copyright (c) 2010 Deon George
|
* @copyright (c) 2010 Deon George
|
||||||
* @license http://dev.leenooks.net/license.html
|
* @license http://dev.leenooks.net/license.html
|
||||||
*/
|
*/
|
||||||
abstract class Controller_lnApp_Media extends Controller {
|
abstract class lnApp_Controller_Media extends Controller {
|
||||||
/**
|
/**
|
||||||
* This action will render all the media related files for a page
|
* This action will render all the media related files for a page
|
||||||
*
|
*
|
@ -10,7 +10,7 @@
|
|||||||
* @copyright (c) 2010 Deon George
|
* @copyright (c) 2010 Deon George
|
||||||
* @license http://dev.leenooks.net/license.html
|
* @license http://dev.leenooks.net/license.html
|
||||||
*/
|
*/
|
||||||
abstract class Controller_lnApp_Task extends Controller {
|
abstract class lnApp_Controller_Task extends Controller {
|
||||||
public function before() {
|
public function before() {
|
||||||
if (! Kohana::$is_cli)
|
if (! Kohana::$is_cli)
|
||||||
throw new Kohana_Exception('Cant run :method, it must be run by the CLI',array(':method'=>$this->request->action()));
|
throw new Kohana_Exception('Cant run :method, it must be run by the CLI',array(':method'=>$this->request->action()));
|
@ -10,7 +10,7 @@
|
|||||||
* @copyright (c) 2010 Deon George
|
* @copyright (c) 2010 Deon George
|
||||||
* @license http://dev.leenooks.net/license.html
|
* @license http://dev.leenooks.net/license.html
|
||||||
*/
|
*/
|
||||||
abstract class Controller_lnApp_TemplateDefault extends Controller_Template {
|
abstract class lnApp_Controller_TemplateDefault extends Controller_Template {
|
||||||
/**
|
/**
|
||||||
* @var string page template
|
* @var string page template
|
||||||
*/
|
*/
|
@ -10,7 +10,7 @@
|
|||||||
* @copyright (c) 2010 Open Source Billing
|
* @copyright (c) 2010 Open Source Billing
|
||||||
* @license http://dev.osbill.net/license.html
|
* @license http://dev.osbill.net/license.html
|
||||||
*/
|
*/
|
||||||
class Controller_lnApp_Tree extends Controller_Default {
|
class lnApp_Controller_Tree extends Controller_Default {
|
||||||
/**
|
/**
|
||||||
* @var string page media route as per [Route]
|
* @var string page media route as per [Route]
|
||||||
*/
|
*/
|
Reference in New Issue
Block a user