-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a268260
commit b7015de
Showing
36 changed files
with
1,624 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
application/source/base/controllers/libraries/form_validation.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<?php | ||
namespace Controllers\User_Manager; | ||
|
||
class index extends \Services\System\Controller | ||
class index extends \IgniteXT\Controller | ||
{ | ||
function index() | ||
{ | ||
header('location:'.BASEURL.'user_manager/users'); | ||
header('location:'.BASE_URL.'user_manager/users'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
<?php | ||
define('CONFDIR', 'application/config/'); | ||
define('APP_DIR', 'application/'); | ||
define('SHR_DIR', 'shared/'); | ||
define('IXT_DIR', 'ignitext/'); | ||
|
||
return 'development'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
/** | ||
* Controller | ||
* | ||
* The base class for a controller. | ||
* | ||
* @copyright Copyright 2011-2012, Website Duck LLC (http://www.websiteduck.com) | ||
* @link http://www.ignitext.com IgniteXT PHP Framework | ||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) | ||
*/ | ||
|
||
namespace IgniteXT; | ||
|
||
abstract class Controller extends Service | ||
{ | ||
public function __construct() | ||
{ | ||
$this->db = \Get::the('\IgniteXT\Database'); | ||
$this->display = \Get::the('\IgniteXT\Display'); | ||
$this->router = \Get::the('\IgniteXT\Router'); | ||
$this->session_class = \Get::the('\IgniteXT\Session'); | ||
$this->session = &$this->session_class->reference(); | ||
$this->input = \Get::the('\IgniteXT\Input'); | ||
} | ||
|
||
public function post_handler($action) { return $this->handler("POST", $action); } | ||
public function get_handler($action) { return $this->handler("GET", $action); } | ||
public function put_handler($action) { return $this->handler("PUT", $action); } | ||
public function delete_handler($action) { return $this->handler("DELETE", $action); } | ||
|
||
/** | ||
* Run an action for a certain request method. | ||
* | ||
* @param string $request_method | ||
* @param string $action | ||
* @return boolean $action_was_ran | ||
*/ | ||
private function handler($request_method, $action) | ||
{ | ||
$request_method = strtolower($request_method); | ||
if ($request_method == strtolower($_SERVER['REQUEST_METHOD'])) { | ||
$this->$action(); | ||
return true; | ||
} | ||
return false; | ||
} | ||
} |
Oops, something went wrong.