[eluser]Unknown[/eluser]
Hi I have something like this to load a website where the nitrous I call the header body and footer but not because this browser does not help me load everything but the view template / body not charge me one I have in the swf html can this be?
Code:
$this->load->view('template/header_views');
$session=$this->facebook->getSession();
if(!$session){
echo $this->facebook->getLoginUrl();
return false;
}
/*Tomamos el numero de solicitudes que tiene el usuario para el tab de msg*/
$data_body['class_dflash']='';
$data_body['class_dhtml']='class="offscreen"';
$data_body['render_gift']='';
/*si cuando entran a la aplicacion llegan desde una solicitud*/
if(isset($_GET['request_ids'])){
/*seteamos la el estilo de salida para la aplicacion*/
$data_body['class_dflash']='class="offscreen"';
$data_body['class_dhtml']='';
$idrequest=$_GET['request_ids'];
/*tomamos la solicitud deacuerdo a su ID*/
$request=$this->facebook->getSingleRequest($idrequest);
/*Si la solicitud existe la procesamos*/
if($request!=null){
/*Guardamos el regalo en el inventario del usuario*/
$dataActionGift=$request['data'];
$action=json_decode($dataActionGift);
if($action->action=='invited'){
echo "acccion para invitar a u amigo";
}elseif ($action->action=='gift') {
$result = $this->gift_model->saveGift($action->idgift,$session['uid']);
if($result){
$dataGift['idsender']=$request['from']['id'];
$dataGift['namesender']=$request['from']['name'];
$gift=$this->gift_model->loadGift($action->idgift);
foreach ($gift as $row){
$dataGift['namegift']=$row->nombre;
$dataGift['image']=$row->imagen;
}
$this->facebook->deleteRequest($idrequest);
$data_body['render_gift']=$this->load->view('gift/acceptGift',$dataGift,true);
$this->load->view('template/body_views',$data_body);
}else{
}
}
/*si no existe ya se habia recibido*/
}else{
$data_body['render_gift']=$this->load->view('gift/oldGift','',true);
$this->load->view('template/body_views',$data_body);
}
}else{
$this->load->view('template/body_views',$data_body);
}
if(isset($_GET['salecoor'])){
$data_js['coor']=$_GET['salecoor'];
$this->load->view('actionjs/saleProperty_js_views',$data_js);
}
$this->load->view('template/footer_views');
Greetings