public function generateLayout($packageKey, $layoutName, $overwrite = false)
    {
        $layoutName = ucfirst($layoutName);

        $templatePathAndFilename = 'resource://Neos.Kickstarter/Private/Generator/View/' . $layoutName . 'Layout.html';

        $contextVariables = [];
        $contextVariables['packageKey'] = $packageKey;

        $fileContent = $this->renderTemplate($templatePathAndFilename, $contextVariables);

        $layoutFilename = $layoutName . '.html';
        $viewPath = 'resource://' . $packageKey . '/Private/Layouts/';
        $targetPathAndFilename = $viewPath . $layoutFilename;

        $this->generateFile($targetPathAndFilename, $fileContent, $overwrite);

        return $this->generatedFiles;
    }
public function generateLayout($packageKey, $layoutName, $overwrite = false)
    {
        $layoutName = ucfirst($layoutName);

        $templatePathAndFilename = 'resource://Neos.Kickstarter/Private/Generator/View/' . $layoutName . 'Layout.html';

        $contextVariables = [];
        $contextVariables['packageKey'] = $packageKey;

        $fileContent = $this->renderTemplate($templatePathAndFilename, $contextVariables);

        $layoutFilename = $layoutName . '.html';
        $viewPath = 'resource://' . $packageKey . '/Private/Layouts/';
        $targetPathAndFilename = $viewPath . $layoutFilename;

        $this->generateFile($targetPathAndFilename, $fileContent, $overwrite);

        return $this->generatedFiles;
    }
public function generateLayout ( $ packageKey , $ layoutName , $ overwrite = false ) { $ layoutName = ucfirst ( $ layoutName ) ; $ templatePathAndFilename = 'resource://Neos.Kickstarter/Private/Generator/View/' . $ layoutName . 'Layout.html' ; $ contextVariables = [ ] ; $ contextVariables [ 'packageKey' ] = $ packageKey ; $ fileContent = $ this -> renderTemplate ( $ templatePathAndFilename , $ contextVariables ) ; $ layoutFilename = $ layoutName . '.html' ; $ viewPath = 'resource://' . $ packageKey . '/Private/Layouts/' ; $ targetPathAndFilename = $ viewPath . $ layoutFilename ; $ this -> generateFile ( $ targetPathAndFilename , $ fileContent , $ overwrite ) ; return $ this -> generatedFiles ; }
Generate a default layout

@param string $packageKey The package key of the controller's package
@param string $layoutName The name of the layout
@param boolean $overwrite Overwrite any existing files?
@return array An array of generated filenames
Generate a default layout