Deprecated: Assigning the return value of new by reference is deprecated in /home/site133/domains/estudioalbertovaras.com.ar/public_html/cake/dispatcher.php on line 157

Deprecated: Assigning the return value of new by reference is deprecated in /home/site133/domains/estudioalbertovaras.com.ar/public_html/cake/dispatcher.php on line 221

Deprecated: Assigning the return value of new by reference is deprecated in /home/site133/domains/estudioalbertovaras.com.ar/public_html/cake/libs/controller/controller.php on line 308

Deprecated: Assigning the return value of new by reference is deprecated in /home/site133/domains/estudioalbertovaras.com.ar/public_html/cake/libs/controller/controller.php on line 347

Deprecated: Assigning the return value of new by reference is deprecated in /home/site133/domains/estudioalbertovaras.com.ar/public_html/cake/libs/controller/controller.php on line 535

Deprecated: Assigning the return value of new by reference is deprecated in /home/site133/domains/estudioalbertovaras.com.ar/public_html/cake/libs/controller/controller.php on line 805

Deprecated: Assigning the return value of new by reference is deprecated in /home/site133/domains/estudioalbertovaras.com.ar/public_html/cake/libs/controller/component.php on line 125

Deprecated: Assigning the return value of new by reference is deprecated in /home/site133/domains/estudioalbertovaras.com.ar/public_html/cake/libs/view/view.php on line 687

Deprecated: Assigning the return value of new by reference is deprecated in /home/site133/domains/estudioalbertovaras.com.ar/public_html/cake/libs/class_registry.php on line 55

Deprecated: Non-static method Inflector::camelize() should not be called statically, assuming $this from incompatible context in /home/site133/domains/estudioalbertovaras.com.ar/public_html/cake/dispatcher.php on line 89

Strict Standards: Non-static method Configure::getInstance() should not be called statically in /home/site133/domains/estudioalbertovaras.com.ar/public_html/cake/basics.php on line 275

Strict Standards: Non-static method Inflector::underscore() should not be called statically in /home/site133/domains/estudioalbertovaras.com.ar/public_html/cake/basics.php on line 289
Obra->getData('arquitectura'); $keys=array_keys($datos); if(!empty($datos[$obra])){ $datos=$datos[$obra]; $datos['id']=$obra; }else{ foreach($keys as $key){ if($datos[$key]['orden']==1){ $datos=$datos[$key]; $datos['id']=$key; break; } } //$datos=$datos[$keys[0]]; //$datos['id']=$keys[0]; } $this->set('datos',$datos); $this->set('obras',$this->Obra->getData()); } function urbanismo($obra=false){ $datos=$this->Obra->getData('urbanismo'); $keys=array_keys($datos); if(!empty($datos[$obra])){ $datos=$datos[$obra]; $datos['id']=$obra; }else{ foreach($keys as $key){ if($datos[$key]['orden']==1){ $datos=$datos[$key]; $datos['id']=$key; break; } } } $this->set('datos',$datos); $this->set('obras',$this->Obra->getData()); } function investigacion($obra=false){ $datos=$this->Obra->getData('investigacion'); $keys=array_keys($datos); if(!empty($datos[$obra])){ $datos=$datos[$obra]; $datos['id']=$obra; }else{ foreach($keys as $key){ if($datos[$key]['orden']==1){ $datos=$datos[$key]; $datos['id']=$key; break; } } } $this->set('datos',$datos); $this->set('obras',$this->Obra->getData()); } function concursos($obra=false){ $datos=$this->Obra->getData('concursos'); $keys=array_keys($datos); if(!empty($datos[$obra])){ $datos=$datos[$obra]; $datos['id']=$obra; }else{ foreach($keys as $key){ if($datos[$key]['orden']==1){ $datos=$datos[$key]; $datos['id']=$key; break; } } } $this->set('datos',$datos); $this->set('obras',$this->Obra->getData()); } function actualidad($obra=false){ $datos=$this->Obra->getData('actualidad'); $keys=array_keys($datos); if(!empty($datos[$obra])){ $datos=$datos[$obra]; $datos['id']=$obra; $intro=false; }else{ $intro=true; } $this->set('intro', $intro); $this->set('datos',$datos); $this->set('obras',$this->Obra->getData()); } function bibliografia($obra=false){ $datos=$this->Obra->getData('bibliografia'); $keys=array_keys($datos); if(!empty($datos[$obra])){ $datos=$datos[$obra]; $datos['id']=$obra; }else{ foreach($keys as $key){ if($datos[$key]['orden']==1){ $datos=$datos[$key]; $datos['id']=$key; break; } } } $this->set('datos',$datos); $this->set('obras',$this->Obra->getData()); } function publicaciones($obra=false){ $datos=$this->Obra->getData('publicaciones'); $keys=array_keys($datos); if(!empty($datos[$obra])){ $datos=$datos[$obra]; $datos['id']=$obra; }else{ foreach($keys as $key){ if($datos[$key]['orden']==1){ $datos=$datos[$key]; $datos['id']=$key; break; } } } $this->set('datos',$datos); $this->set('obras',$this->Obra->getData()); } function admin_arquitectura($obra=false, $erase=false){ $erase=($erase=='erase')?true:false; if($erase){ $this->Obra->setData('arquitectura',array('id'=>$obra), true); $this->redirect('/admin/obras/arquitectura/'); } if(!empty($this->data['Obra'])){ $id=$this->Obra->setData('arquitectura',$this->data['Obra'], $erase); $this->__copyImages($this->data['Obra'], 'arquitectura', $id); } $this->set('datos',$this->Obra->getData('arquitectura')); $this->set('obraSeleccionada',$obra); } function admin_urbanismo($obra=false, $erase=false){ $erase=($erase=='erase')?true:false; if($erase){ $this->Obra->setData('urbanismo',array('id'=>$obra), true); $this->redirect('/admin/obras/urbanismo/'); } if(!empty($this->data['Obra'])){ $id=$this->Obra->setData('urbanismo',$this->data['Obra'], $erase); $this->__copyImages($this->data['Obra'], 'urbanismo', $id); } $this->set('datos',$this->Obra->getData('urbanismo')); $this->set('obraSeleccionada',$obra); } function admin_investigacion($obra=false, $erase=false){ $erase=($erase=='erase')?true:false; if($erase){ $this->Obra->setData('investigacion',array('id'=>$obra), true); $this->redirect('/admin/obras/investigacion/'); } if(!empty($this->data['Obra'])){ $id=$this->Obra->setData('investigacion',$this->data['Obra'], $erase); $this->__copyImages($this->data['Obra'], 'investigacion', $id); } $this->set('datos',$this->Obra->getData('investigacion')); $this->set('obraSeleccionada',$obra); } function admin_concursos($obra=false, $erase=false){ $erase=($erase=='erase')?true:false; if($erase){ $this->Obra->setData('concursos',array('id'=>$obra), true); $this->redirect('/admin/obras/concursos/'); } if(!empty($this->data['Obra'])){ $id=$this->Obra->setData('concursos',$this->data['Obra'], $erase); $this->__copyImages($this->data['Obra'], 'concursos', $id); } $this->set('datos',$this->Obra->getData('concursos')); $this->set('obraSeleccionada',$obra); } function admin_actualidad($obra=false, $erase=false){ $erase=($erase=='erase')?true:false; if($erase){ $this->Obra->setData('actualidad',array('id'=>$obra), true); $this->redirect('/admin/obras/actualidad/'); } if(!empty($this->data['Obra'])){ $id=$this->Obra->setData('actualidad',$this->data['Obra'], $erase); $this->__copyImages($this->data['Obra'], 'actualidad', $id); } $this->set('datos',$this->Obra->getData('actualidad')); $this->set('obraSeleccionada',$obra); } function admin_bibliografia($obra=false, $erase=false){ $erase=($erase=='erase')?true:false; if($erase){ $this->Obra->setData('bibliografia',array('id'=>$obra), true); $this->redirect('/admin/obras/bibliografia/'); } if(!empty($this->data['Obra'])){ $id=$this->Obra->setData('bibliografia',$this->data['Obra'], $erase); $this->__copyImages($this->data['Obra'], 'bibliografia', $id); } $this->set('datos',$this->Obra->getData('bibliografia')); $this->set('obraSeleccionada',$obra); } function admin_publicaciones($obra=false, $erase=false){ $erase=($erase=='erase')?true:false; if($erase){ $this->Obra->setData('publicaciones',array('id'=>$obra), true); $this->redirect('/admin/obras/publicaciones/'); } if(!empty($this->data['Obra'])){ $id=$this->Obra->setData('publicaciones',$this->data['Obra'], $erase); $this->__copyImages($this->data['Obra'], 'publicaciones', $id); } $this->set('datos',$this->Obra->getData('publicaciones')); $this->set('obraSeleccionada',$obra); } function __copyImages($imgData, $section, $id){ for($i=0;$i<=10;$i++){ if(!empty($imgData['imagen'.$i]['tmp_name'])){ $imgFile=file_get_contents($imgData['imagen'.$i]['tmp_name']); if(!is_dir(WWW_ROOT.'files/obras/'.$section.'/'.$id)) mkdir(WWW_ROOT.'files/obras/'.$section.'/'.$id); $imgFileHandler=fopen(WWW_ROOT.'files/obras/'.$section.'/'.$id.'/'.$imgData['imagen'.$i]['name'],'w'); fwrite($imgFileHandler, $imgFile); fclose($imgFileHandler); chmod(WWW_ROOT.'files/obras/'.$section.'/'.$id.'/'.$imgData['imagen'.$i]['name'], 0777); } } } } ?>
Fatal error: Class 'ObrasController' not found in /home/site133/domains/estudioalbertovaras.com.ar/public_html/cake/dispatcher.php on line 157