ueberschriften
This commit is contained in:
parent
e70f94b686
commit
8c2628e75d
|
@ -10,7 +10,7 @@ class PdfController extends AppController {
|
||||||
$this->MiconwareSession->init($this);
|
$this->MiconwareSession->init($this);
|
||||||
|
|
||||||
$this->MiconwareSession->initWeb($this);
|
$this->MiconwareSession->initWeb($this);
|
||||||
$this->response->type('application/pdf');
|
|
||||||
$WORKER = $this->MiconwareSession->getWorker();
|
$WORKER = $this->MiconwareSession->getWorker();
|
||||||
$COMPANY = $self = $this->MiconwareSession->getCompany();
|
$COMPANY = $self = $this->MiconwareSession->getCompany();
|
||||||
$application = null;
|
$application = null;
|
||||||
|
@ -25,6 +25,7 @@ class PdfController extends AppController {
|
||||||
$this->set('error', 'dreamjob.error.noPermision');
|
$this->set('error', 'dreamjob.error.noPermision');
|
||||||
$this->render('/Home/error');
|
$this->render('/Home/error');
|
||||||
}else{
|
}else{
|
||||||
|
$this->response->type('application/pdf');
|
||||||
$this->set('application',$application);
|
$this->set('application',$application);
|
||||||
$cv = $this->DreamjobCvEntry->find('all',array('conditions' => array('worker_id'=> $application['DreamjobJobApplication']['worker_id'])));
|
$cv = $this->DreamjobCvEntry->find('all',array('conditions' => array('worker_id'=> $application['DreamjobJobApplication']['worker_id'])));
|
||||||
$this->set("cv",$cv);
|
$this->set("cv",$cv);
|
||||||
|
@ -39,13 +40,13 @@ class PdfController extends AppController {
|
||||||
$this->MiconwareSession->init($this);
|
$this->MiconwareSession->init($this);
|
||||||
|
|
||||||
$this->MiconwareSession->initWeb($this);
|
$this->MiconwareSession->initWeb($this);
|
||||||
$this->response->type('application/pdf');
|
|
||||||
$WORKER = $this->MiconwareSession->getWorker();
|
$WORKER = $this->MiconwareSession->getWorker();
|
||||||
|
|
||||||
if(!is_array($WORKER) or count($WORKER) <= 0){
|
if(!is_array($WORKER) or count($WORKER) <= 0){
|
||||||
$this->set('error', 'dreamjob.error.noPermision');
|
$this->set('error', 'dreamjob.error.noPermision');
|
||||||
$this->render('/Home/error');
|
$this->render('/Home/error');
|
||||||
}else{
|
}else{
|
||||||
|
$this->response->type('application/pdf');
|
||||||
$cv = $this->DreamjobCvEntry->find('all',array('conditions' => array('worker_id'=> $WORKER['AppUser']['id'])));
|
$cv = $this->DreamjobCvEntry->find('all',array('conditions' => array('worker_id'=> $WORKER['AppUser']['id'])));
|
||||||
$this->set("cv",$cv);
|
$this->set("cv",$cv);
|
||||||
$cvp0 = $this->DreamjobListCvCategory->find('first',array('conditions' => array('DreamjobListCvCategory.position' => 0)));
|
$cvp0 = $this->DreamjobListCvCategory->find('first',array('conditions' => array('DreamjobListCvCategory.position' => 0)));
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
//header("Content-type: application/pdf");
|
header("Content-type: application/pdf");
|
||||||
echo $content_for_layout;
|
//echo $content_for_layout;
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue