3.14.4 Plugin Views
Views behave exactly as they do in normal applications. Just place them in the right folder inside of the /app/plugins/[plugin]/views/ folder. For our pizza ordering plugin, we'll need a view for our PizzaOrdersController::index() action, so let's include that as well:
// /app/plugins/pizza/views/pizza_orders/index.ctp: <h1>Order A Pizza</h1> <p>Nothing goes better with Cake than a good pizza!</p> <!-- An order form of some sort might go here....-->
// /app/plugins/pizza/views/pizza_orders/index.ctp:<h1>Order A Pizza</h1><p>Nothing goes better with Cake than a good pizza!</p><!-- An order form of some sort might go here....-->
For information on how to use elements from a plugin, look up Requesting Elements from a Plugin


























