Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
public function insertacomenta($idtema_foro = NULL) {
if (is_null($idtema_foro)) {
// podes mostrar una página de error
show_error('ID Tema no disponible');
// o podes hacer un redirect
$this->session->set_flashdata('error', 'ID Tema no disponible');
redirect('foros');
}
$data ['usuarios'] = $this->Register_model->registrado();
$data['detalles'] = $this->Foros_model->insertcomenta($idtema_foro);
$data['morecoment'] = $this->Foros_model->aumentacoment($idtema_foro);
$data['title'] = 'Foros | One Life Style';
$data['main_content'] = 'front/foros';
$this->load->view('one_temp', $data);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment