Saturday, January 1, 2022

[FIXED] Error: "Dashboard" is not a valid value for --theme

Issue

I have attempted a few times to create my own bake theme following the tutorial here: https://book.cakephp.org/bake/1/en/development.html#creating-a-bake-theme

When I attempt to run my theme, called Dashboard, I get these:

Error: "Dashboard" is not a valid value for --theme. Please use one of "Bake, Migrations, WyriHaximus/TwigView"
Error: "DashboardTheme" is not a valid value for --theme. Please use one of "Bake, Migrations, WyriHaximus/TwigView"

I attempted the following commands:

cake bake all --theme Dashboard clients
cake bake all --theme DashboardTheme clients

My file structure:

enter image description here


Solution

The plugin wasn't loaded, missing statement in bootstrap().



Answered By - TechFanDan

No comments:

Post a Comment

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