ネイティブPHP言語を使用しても大丈夫かどうかを尋ねたいだけです。
例:
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;
}
}
前もって感謝します!