How to create cakephp 2 plugin using cake bake all command?
<p>I have tried following codes in sequence to create my plugin:</p>

<pre><code>cake bake model all -p MyPlugin  // working 

cake bake controller all -p MyPlugin // not working
No controllers were baked, Model need to exist before Controller can be baked.


cake bake view all -p MyPlugin // not working
No error and no views are created.
</code></pre>

<p>How can I resolve this?</p>

<p>I am using cakephp 2.6 and there are four tables posts,categories,tags, posts_tags.</p>