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!
You can use native PHP language in codeigniter without any problems. Only difference is that Codeigniter has functions that can help you keep your code simple and clean. So if you already using codeigniter I would recommend that you try and use as many functionalities of Codeigniter as possible.