ueberschriften

This commit is contained in:
Martin Müller 2014-04-24 10:12:06 +02:00
parent e70f94b686
commit 8c2628e75d
2 changed files with 5 additions and 4 deletions

View File

@ -10,7 +10,7 @@ class PdfController extends AppController {
$this->MiconwareSession->init($this);
$this->MiconwareSession->initWeb($this);
$this->response->type('application/pdf');
$WORKER = $this->MiconwareSession->getWorker();
$COMPANY = $self = $this->MiconwareSession->getCompany();
$application = null;
@ -25,6 +25,7 @@ class PdfController extends AppController {
$this->set('error', 'dreamjob.error.noPermision');
$this->render('/Home/error');
}else{
$this->response->type('application/pdf');
$this->set('application',$application);
$cv = $this->DreamjobCvEntry->find('all',array('conditions' => array('worker_id'=> $application['DreamjobJobApplication']['worker_id'])));
$this->set("cv",$cv);
@ -39,13 +40,13 @@ class PdfController extends AppController {
$this->MiconwareSession->init($this);
$this->MiconwareSession->initWeb($this);
$this->response->type('application/pdf');
$WORKER = $this->MiconwareSession->getWorker();
if(!is_array($WORKER) or count($WORKER) <= 0){
$this->set('error', 'dreamjob.error.noPermision');
$this->render('/Home/error');
}else{
$this->response->type('application/pdf');
$cv = $this->DreamjobCvEntry->find('all',array('conditions' => array('worker_id'=> $WORKER['AppUser']['id'])));
$this->set("cv",$cv);
$cvp0 = $this->DreamjobListCvCategory->find('first',array('conditions' => array('DreamjobListCvCategory.position' => 0)));

View File

@ -1,4 +1,4 @@
<?php
//header("Content-type: application/pdf");
echo $content_for_layout;
header("Content-type: application/pdf");
//echo $content_for_layout;
?>