Tidied up code base for work on the new Mac. Going to remote ProductCategories since they seem useless and I have forgotten why I made them.

This commit is contained in:
Karl Cordes 2009-11-05 12:40:24 +11:00
parent 39efdba3ad
commit 206cd90b8a
5 changed files with 9 additions and 10 deletions

2
.gitignore vendored
View file

@ -4,7 +4,7 @@ tmp/cache/persistent/*
tmp/cache/views/* tmp/cache/views/*
tmp/sessions/* tmp/sessions/*
tmp/tests/* tmp/tests/*
tmp/*
*.tar.gz *.tar.gz
*.swp *.swp
*.swo *.swo
vapourama/*

View file

@ -179,7 +179,7 @@
* *
* File storage engine. * File storage engine.
*/ */
Cache::config('default', array( /*Cache::config('default', array(
'engine' => 'File', //[required] 'engine' => 'File', //[required]
'duration'=> 3600, //[optional] 'duration'=> 3600, //[optional]
'probability'=> 100, //[optional] 'probability'=> 100, //[optional]
@ -188,7 +188,7 @@
'lock' => false, //[optional] use file locking 'lock' => false, //[optional] use file locking
'serialize' => true, 'serialize' => true,
)); ));
*/
/* /*
* *
@ -198,13 +198,13 @@
*/ */
//APC (http://pecl.php.net/package/APC) //APC (http://pecl.php.net/package/APC)
/* Cache::config('default', array( Cache::config('default', array(
'engine' => 'Apc', //[required] 'engine' => 'Apc', //[required]
'duration'=> 3600, //[optional] 'duration'=> 3600, //[optional]
'probability'=> 100, //[optional] 'probability'=> 100, //[optional]
'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
)); */ ));
/*ß /*
* *
* *
// Xcache (http://xcache.lighttpd.net/) // Xcache (http://xcache.lighttpd.net/)

View file

@ -45,9 +45,9 @@ class QuoteProductsController extends AppController {
$principles = $this->QuoteProduct->Product->Principle->find('list'); $principles = $this->QuoteProduct->Product->Principle->find('list');
$currencies = $this->QuoteProduct->Currency->find('list');
$quote = $this->QuoteProduct->Quote->read(null, $quoteid); $quote = $this->QuoteProduct->Quote->read(null, $quoteid);
$this->set(compact('principles', 'currencies', 'quote', 'products')); $this->set(compact('principles','quote', 'products'));
} }

1
tmp/.gitignore vendored
View file

@ -1 +0,0 @@

View file

@ -93,7 +93,7 @@ $tcpdf->AliasNbPages();
$tcpdf->lastPage(); $tcpdf->lastPage();
$output_dir = '/var/www/cake/app/webroot/pdf/'; $output_dir = '/Users/karlcordes/Sites/quotenik/app/webroot/pdf/';
if($quote['Quote']['revision'] > 0) { if($quote['Quote']['revision'] > 0) {
$filename = $enquiry['Enquiry']['title'].'rev'.$quote['Quote']['revision'].'.pdf'; $filename = $enquiry['Enquiry']['title'].'rev'.$quote['Quote']['revision'].'.pdf';