Created an initial, viewable version of the site

Signed-off-by: Gergely POLONKAI (W00d5t0ck) <polesz@w00d5t0ck.info>
This commit is contained in:
Polonkai Gergely
2012-04-17 16:46:46 +00:00
parent c3276a06f2
commit e6444617e3
14 changed files with 342 additions and 18 deletions

View File

@@ -8,8 +8,13 @@ use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class DefaultController extends Controller
{
public function indexAction($name)
public function indexAction()
{
return $this->render('OpenScrumInfoBundle:Default:index.html.twig', array('name' => $name));
return $this->render('OpenScrumInfoBundle:' . $this->get('session')->getLocale() . ':index.html.twig', array());
}
public function infopageAction($page)
{
return $this->render('OpenScrumInfoBundle:' . $this->get('session')->getLocale() . ':' . $page . '.html.twig', array());
}
}