Files
dbois/application/core/MY_Controller.php
T
2017-12-19 17:23:34 +01:00

41 lines
711 B
PHP

<?php
/**
* Created by Pensare Software.
* User: Theo Weijmer
* Date: 05/12/2017
* Time: 11:02
*/
class MY_Controller extends CI_Controller {
public $authenticated;
public function __construct()
{
parent::__construct();
$this->load->library( 'beheer/RetrieveUserSession' );
$this->handle();
}
private function handle()
{
$this->retrieveusersession->handle();
}
function clean_input( $post )
{
$value = $this->input->input_stream( $post, TRUE );
$denulledValue = str_replace( 'null', '', $value);
return $denulledValue;
}
public function json($data)
{
echo json_encode($data);
}
}