Skip to content

Instantly share code, notes, and snippets.

@everdaniel
Created March 26, 2014 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save everdaniel/9790440 to your computer and use it in GitHub Desktop.
Save everdaniel/9790440 to your computer and use it in GitHub Desktop.
<?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