Getting current action from view component in symfony

 

$action =
  $this->getContext()->getActionStack()
  ->getLastEntry()->getActionInstance();
$action->redirect(''); // etc

Serving multiple Symfony apps from one project with one vhost

I have created this simple three step approach for a Symfony project to switch application contexts while respecting the desire to have a global project-wide config file, vhost and default mod_rewrite configuration.  

Read more...

PHP and Slots in Gentoo

I had a gut-feeling using slots to quickly switch between different versions of PHP in Gentoo would be straightforward and it was.  The only piece of the puzzle that eluded me for a while, in the end, was working out how to tell portage to install a specific version. This is acheieved with an equals sign. As such: (Assuming in this instance 5.2 is already installed.)

Read more...