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

Friday, April 22, 2022

[FIXED] How to bake a plugin controller without scaffolding in cakephp 2.3

 April 22, 2022     cakephp, cakephp-2.3, code-generation, php, plugins     No comments   

Issue

When I bake my plugin controller, it always generate with scaffolding.

class MyController extends PluginAppController {

/**
 * Scaffold
 *
 * @var mixed
 */
        public $scaffold;

}

Anyone help me to bake plugin without scaffolding.


Solution

From your main app directory in the command line enter

  1. cake bake controller -p <pluginname>
  2. select the controller you're baking
  3. Answer the scaffolding question with default (no)

    Would you like to use dynamic scaffolding? (y/n)
    [n] >



Answered By - mk97
Answer Checked By - Cary Denson (PHPFixing Admin)
  • 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