Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bake controller: _getViewFileName() undefined #536

Closed
ava007 opened this issue Apr 30, 2019 · 2 comments
Closed

bake controller: _getViewFileName() undefined #536

ava007 opened this issue Apr 30, 2019 · 2 comments

Comments

@ava007
Copy link
Contributor

ava007 commented Apr 30, 2019

Environment

CakePHP 4.x (latest development version 2019-04-30)
Bake 4.x (latest development version 2019-04-30)
PHP 7.3.2

What I did

bin/cake bake controller book

Results:

Baking controller class for Book...
Exception: Call to undefined method Bake\View\BakeView::_getViewFileName() in [/usr/.../lfcakephp4/vendor/cakephp/bake/src/View/BakeView.php, line 99]
2019-04-30 15:42:07 Error: [Error] Call to undefined method Bake\View\BakeView::_getViewFileName() in /usr/.../lfcakephp4/vendor/cakephp/bake/src/View/BakeView.php on line 99
Stack Trace:
#0 /usr/.../lfcakephp4/vendor/cakephp/bake/src/Utility/TemplateRenderer.php(100): Bake\View\BakeView->render('Controller/cont...')
#1 /usr/.../lfcakephp4/vendor/cakephp/bake/src/Command/ControllerCommand.php(174): Bake\Utility\TemplateRenderer->generate('Controller/cont...')
#2 /usr/.../lfcakephp4/vendor/cakephp/bake/src/Command/ControllerCommand.php(145): Bake\Command\ControllerCommand->bakeController('Book', Array, Object(Cake\Console\Arguments), Object(Cake\Console\ConsoleIo))
#3 /usr/.../lfcakephp4/vendor/cakephp/bake/src/Command/ControllerCommand.php(63): Bake\Command\ControllerCommand->bake('Book', Object(Cake\Console\Arguments), Object(Cake\Console\ConsoleIo))
#4 /usr/.../lfcakephp4/vendor/cakephp/cakephp/src/Console/Command.php(178): Bake\Command\ControllerCommand->execute(Object(Cake\Console\Arguments), Object(Cake\Console\ConsoleIo))
#5 /usr/.../lfcakephp4/vendor/cakephp/cakephp/src/Console/CommandRunner.php(323): Cake\Console\Command->run(Array, Object(Cake\Console\ConsoleIo))
#6 /usr/.../lfcakephp4/vendor/cakephp/cakephp/src/Console/CommandRunner.php(161): Cake\Console\CommandRunner->runCommand(Object(Bake\Command\ControllerCommand), Array, Object(Cake\Console\ConsoleIo))
#7 /usr/.../lfcakephp4/bin/cake.php(12): Cake\Console\CommandRunner->run(Array)
#8 {main}

@ADmad
Copy link
Member

ADmad commented Apr 30, 2019

The method name needs to be updated to _getTemplateFileName(), would you like to submit a fix?

@ava007
Copy link
Contributor Author

ava007 commented Apr 30, 2019

yes, I'll submit a fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants