Moved PDF output directory to Configure class. Path defined in core.php
This commit is contained in:
parent
234ecbbac9
commit
dae68692fa
|
|
@ -23,13 +23,13 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<span id="invoiceID" style="display: none;"><?=$document['Invoice']['id']?></span>
|
<span id="orderAckID" style="display: none;"><?=$document['OrderAcknowledgement']['id']?></span>
|
||||||
|
|
||||||
<? //debug($this->data);?>
|
<? //debug($this->data);?>
|
||||||
<? debug($enquiry);?>
|
<? //debug($enquiry);?>
|
||||||
<?php debug($document);?>
|
<?php // debug($document);?>
|
||||||
<?php //debug($docType);?>
|
<?php //debug($docType);?>
|
||||||
|
|
||||||
<? //debug($invoice); ?>
|
<? //debug($invoice); ?>
|
||||||
<hr>
|
|
||||||
<?php // debug($job);?>
|
<?php // debug($job);?>
|
||||||
|
|
@ -3,10 +3,9 @@ $debuglevel = Configure::read('debug');
|
||||||
if($debuglevel == 0) {
|
if($debuglevel == 0) {
|
||||||
$output_dir = '/var/www/cakephp/app/webroot/pdf/';
|
$output_dir = '/var/www/cakephp/app/webroot/pdf/';
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
$output_dir = '/Users/karlcordes/Sites/quotenik/app/webroot/pdf/';
|
|
||||||
|
|
||||||
}
|
|
||||||
|
$output_dir = Configure::read('pdf_directory');
|
||||||
|
|
||||||
$pagecount = $pdfdoc->setSourceFile($output_dir.'CMC_terms_and_conditions2006_A4.pdf');
|
$pagecount = $pdfdoc->setSourceFile($output_dir.'CMC_terms_and_conditions2006_A4.pdf');
|
||||||
for ($i = 1; $i <= $pagecount; $i++) { //Not really necessary for a 1 page T&C PDF, but handles future longer ones.
|
for ($i = 1; $i <= $pagecount; $i++) { //Not really necessary for a 1 page T&C PDF, but handles future longer ones.
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,8 @@
|
||||||
?>
|
?>
|
||||||
<?=$li['item_number'];?></td>
|
<?=$li['item_number'];?></td>
|
||||||
<td><?=$li['quantity'];?></td>
|
<td><?=$li['quantity'];?></td>
|
||||||
<td class="description"><?=$li['title'];?>
|
<td class="description">
|
||||||
|
<?=$li['title'];?><br>
|
||||||
<?=$li['description'];?>
|
<?=$li['description'];?>
|
||||||
</td>
|
</td>
|
||||||
<td class="price">
|
<td class="price">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue