Skip to content

Instantly share code, notes, and snippets.

@JoshuaEstes
Last active December 11, 2015 03:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoshuaEstes/4539552 to your computer and use it in GitHub Desktop.
Save JoshuaEstes/4539552 to your computer and use it in GitHub Desktop.

MySQL Cookbook

Symfony2 Cookbook

Locate resource in controller

<?php
// in your action
$kernel = $this->get('kernel');
$path   = $kernel->locateResource('@AcmeBlogBundle/Resources/file');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment