Created
March 26, 2014 18:45
-
-
Save everdaniel/9790440 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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