symfony2 unable to find twig template

Viewed 7377

I am 2 hours new into Symfony2 so excuse my noob question. I am receiving an error stating:

Unable to find template "Akademiah:MemberBundle:Default:index.html.twig".
500 Internal Server Error - InvalidArgumentException
3 linked Exceptions: Twig_Error_Loader » InvalidArgumentException » InvalidArgumentException »

Not sure why this is showing as I am following a tutorial and things are expected to work at this stage?

I have the following in my controller:

<?php

namespace Akademiah\MemberBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;

class DefaultController extends Controller
{
    /**
     * @Route("/hello/{name}")
     * @Template()
     */
    public function indexAction($name)
    {
            return $this->render('MemberBundle:Default:index.html.twig',array('name'=>$name));    
    }
}

and I created the bundle using the PHP app/console command. Help is appreciated.

1 Answers
Related