inrichten base applicatie

This commit is contained in:
2017-12-15 19:17:56 +01:00
parent ab143a51b9
commit 7f2314c00b
9 changed files with 93 additions and 39 deletions
+8 -2
View File
@@ -19,12 +19,18 @@ class MY_Controller extends CI_Controller {
private function handle()
{
$this->environment();
}
function clean_input( $post )
{
return str_replace( 'null', '', $this->db->escape_str( $this->input->post( $post ), TRUE ) );
$value = $this->input->post( $post );
// $escapedValue = $this->db->escape_string( $value, TRUE );
$denulledValue = str_replace( 'null', '', $value);
return $denulledValue;
}
public function json($data)