This commit is contained in:
2017-12-25 20:23:32 +01:00
parent 1175a4f8ff
commit 0cc882060c
36 changed files with 781 additions and 86 deletions
+6 -3
View File
@@ -9,6 +9,7 @@
class MY_Controller extends CI_Controller {
public $authenticated;
public $user;
public function __construct()
{
@@ -22,20 +23,22 @@ class MY_Controller extends CI_Controller {
private function handle()
{
$this->retrieveusersession->handle();
$this->user = $this->User_model->get( USERID );
}
function clean_input( $post )
{
$value = $this->input->input_stream( $post, TRUE );
$denulledValue = str_replace( 'null', '', $value);
$denulledValue = str_replace( 'null', '', $value );
return $denulledValue;
}
public function json($data)
public function json( $data )
{
echo json_encode($data);
echo json_encode( $data );
}
}