Slim and FormFactory symfony integration


I am fresh to slim/twig and trying to use FromFactory component with slim but have some problems.

It is very simple to create form but I cannot render them to view. Once a form is created I can access its data but twig does not recognise it.

I am using code from manual
but I cannot generate $twig properly. it fails with 404 on this :

$formEngine = new TwigRendererEngine(array($defaultFormTheme), $twig);

Twig is requested with:

$twig = new \Slim\Views\Twig(array(DIR . ‘/…/…/resources/views’,

when doing this I am getting 404

$twig1 = new Twig_Environment(new Twig_Loader_Filesystem(array(
))  ); 

which does not give me much really what is wrong. Even I have added debug info as from manual.

Any suggestions?