I just want to ask if is it okay that I use native PHP language?
Example:
public function updatePost(){
if(!empty($_POST['name'])){
return true;
}else{
return false;
}
}
CodeIgniter:
public function updatePost{
$this->form_validation->set_rules("name","Name","trim|required");
if($this->form_validation->run()==false){
return false;
}else{
return true;
}
}
Thanks in advance!