initial commit
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?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->handle();
|
||||
}
|
||||
|
||||
private function handle()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
function clean_input( $post )
|
||||
{
|
||||
return str_replace( 'null', '', $this->db->escape_str( $this->input->post( $post ), TRUE ) );
|
||||
}
|
||||
|
||||
public function json($data)
|
||||
{
|
||||
echo json_encode($data);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user