public function bake($controllerName, $actionName, $content = '')
    {
        if ($content === true) {
            $content = $this->getContent($action);
        }
        if (empty($content)) {
            return false;
        }
        $this->out("\n" . sprintf('Baking `%s%s/%s` JS controller file...', ($this->plugin ? $this->plugin . '.' : ''), $controllerName, $actionName), 1, Shell::QUIET);
        $path = $this->getPath();
        $filename = $path . Inflector::underscore($controllerName) . '/' . Inflector::underscore($actionName) . '_controller.js';
        $this->createFile($filename, $content);
        return $content;
    }
public function bake($controllerName, $actionName, $content = '')
    {
        if ($content === true) {
            $content = $this->getContent($action);
        }
        if (empty($content)) {
            return false;
        }
        $this->out("\n" . sprintf('Baking `%s%s/%s` JS controller file...', ($this->plugin ? $this->plugin . '.' : ''), $controllerName, $actionName), 1, Shell::QUIET);
        $path = $this->getPath();
        $filename = $path . Inflector::underscore($controllerName) . '/' . Inflector::underscore($actionName) . '_controller.js';
        $this->createFile($filename, $content);
        return $content;
    }
public function bake ( $ controllerName , $ actionName , $ content = '' ) { if ( $ content === true ) { $ content = $ this -> getContent ( $ action ) ; } if ( empty ( $ content ) ) { return false ; } $ this -> out ( "\n" . sprintf ( 'Baking `%s%s/%s` JS controller file...' , ( $ this -> plugin ? $ this -> plugin . '.' : '' ) , $ controllerName , $ actionName ) , 1 , Shell :: QUIET ) ; $ path = $ this -> getPath ( ) ; $ filename = $ path . Inflector :: underscore ( $ controllerName ) . '/' . Inflector :: underscore ( $ actionName ) . '_controller.js' ; $ this -> createFile ( $ filename , $ content ) ; return $ content ; }
Bakes the JS file

@param string $controllerName Controller Name
@param string $actionName Action Name
@param string $content File Content
@return string
Bakes the JS file