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>
|
||||
|
||||
|
||||
<span id="invoiceID" style="display: none;"><?=$document['Invoice']['id']?></span>
|
||||
<span id="orderAckID" style="display: none;"><?=$document['OrderAcknowledgement']['id']?></span>
|
||||
|
||||
<? //debug($this->data);?>
|
||||
<? debug($enquiry);?>
|
||||
<?php debug($document);?>
|
||||
<? //debug($enquiry);?>
|
||||
<?php // debug($document);?>
|
||||
<?php //debug($docType);?>
|
||||
|
||||
<? //debug($invoice); ?>
|
||||
<hr>
|
||||
|
||||
<?php // debug($job);?>
|
||||
|
|
@ -3,10 +3,9 @@ $debuglevel = Configure::read('debug');
|
|||
if($debuglevel == 0) {
|
||||
$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');
|
||||
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>
|
||||
<td><?=$li['quantity'];?></td>
|
||||
<td class="description"><?=$li['title'];?>
|
||||
<td class="description">
|
||||
<?=$li['title'];?><br>
|
||||
<?=$li['description'];?>
|
||||
</td>
|
||||
<td class="price">
|
||||
|
|
|
|||
Loading…
Reference in a new issue