-
-
Save Geraint/813790a6d6562f8d3d60 to your computer and use it in GitHub Desktop.
Eclipse Template for Symfony2 Controller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace ${bundle}Bundle\Controller; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\Response; | |
class ${controller}Controller extends Controller | |
{ | |
/** | |
* @Route("${route}") | |
*/ | |
public function indexAction() | |
{ | |
return $$this->render('${controller}/index.html.twig', array( | |
${cursor} | |
)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment