function validate_emailurl() { $this->layout = 'ajax'; $data = $this->User->validate_emailurl($this->data); echo json_encode($data); exit; }