Advertisement
academo

Untitled

Jun 18th, 2011
67
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Obtener el modulo actual
  2.         $actual_module=$this->CourseGroupsModule->find("first", array("conditions"=>array("CourseGroupsModule.course_group_id"=>$id, "CourseGroupsModule.status"=>1)));
  3.         if(empty($actual_module)){
  4.             $this->Session->setFlash('Este grupo no tiene modulos activos.');
  5.             $this->redirect(array("teacher"=>true,'controller'=>'CourseGroups', 'action' => 'view', $id));
  6.         }
Advertisement
RAW Paste Data Copied
Advertisement