More CakePHP notes

Get the authentication details in a view. Permission based so in a user with low rights you need to specifically identify the property you want

<?php debug($this->Session->read('Auth.User')); // works with power user ?>
<?php debug($this->Session->read('Auth.User.username')); // works everywhere ?>

If you want to make a banned view (under ACL) accessible, in the Controller use Auth->Allow:

public function beforeFilter() {
	parent::beforeFilter();
	// this makes the index visible to everyone
	$this->Auth->allow('index', 'view');
}

 

Storing the Pinot Chardonnay

500D_9826

So I syphoned it off in to my carboy-with-tap and decanted it in to four demijohns, two bottles and a massive puddle on the floor when I got frustrated by the tap being so high above the bottom of the carboy and upended it for the last demijohn.  Oops.

The last one and the two bottles were so vigorously poured they were frothy, so I chucked a campden tablet in to the demijohn and an eighth of a tablet in to the two bottles.

The wine is obviously not clear!  The one on the right on the picture above is the wine I made from Waitrose grape juice that I also racked off today for comparison.  With the wine in the demijohns it should clarify slowly, but I think I will buy a filter for next time.  They are not that expensive (£25) and would make a big difference.  Filtering out the yeast would also guarantee fermentation to stop.

The Waitrose one is rather dry, so some sneaky sweetener might be popped in before serving.

Californian Kit – Lift Off – Day 28

2014-01-27 17.44.20

So, here you have it – drinkable wine after just 28 days.  I did not have time to syphon it off, so I scooped out a couple of glasses worth using a sterilised jug.  It is more than drinkable, and just as good as many bottles we’ve bought.  I don’t know how many bottles we’ll end up with, but it will be about 30 for £45, working out at £1.50 per bottle.  It is not super clear yet, but you hardly notice on drinking.

Trying to show the slight lack of clarity to the wine
Trying to show the slight lack of clarity to the wine

When I get the time, I will syphon to demijohns and let it clarify further in them, bottling from the demijohns in a just in time sort of way.  Then on with the IPA!  I think I should have left it to clarify in my container with a tap, but there is supposed to be one more syphon before bottling.  Not quite sure why that is – maybe it is to avoid disturbing it too much when bottling.  Maybe I will syphon to my tapped carboy then use the bottling attachment to fill the demijohns.