PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, March 2, 2022

[FIXED] Policy related cakePHP bake command does't work(in my case)

 March 02, 2022     cakephp, cakephp-4.x, cakephp-bake, php     No comments   

Issue

I am working on cakePHP (version 4.0.5) and when I tried to run

bin/cake bake policy --type entity Name

command, It'll gives an error .

Error: Unknown option type.

Can anyone encounter such problem and have any solution,kindly share...


Solution

I just ran into this message when I missed loading the Authorization plugin. Check you have loaded the plugin by adding the following statement to the bootstrap() method in src/Application.php:

$this->addPlugin('Authorization');

reference: https://book.cakephp.org/4/en/tutorials-and-examples/cms/authorization.html



Answered By - rogyw
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing