Sensio\Bundle\GeneratorBundle\Generator\DoctrineCrudGenerator::generateNewView PHP Метод

generateNewView() приватный Метод

Generates the new.html.twig template in the final bundle.
private generateNewView ( string $dir )
$dir string The path to the folder that hosts templates in the bundle
    private function generateNewView($dir)
    {
        $this->renderFile($this->skeletonDir, 'views/new.html.twig', $dir.'/new.html.twig', array(
            'dir'          => $this->skeletonDir,
            'route_prefix' => $this->routePrefix,
            'entity'       => $this->entity,
            'actions'      => $this->actions,
        ));
    }