You will require a new model to make all the ingredients and the toppings available. Then, you would require a controller that would be the entry point for your application, and which would control the cooking process. To wrap up things, you require a view to which you will pass on the data from the controller, and your cooking will conclude.
This time, creating a new model is not at all difficult.
You just need to create a new PHP class inside the <project-root>/module/Application/src/Application/Model
directory in just the same way as you have done all the while.
Name it Cooking
, and set the namespace as Application\Model
. The purpose of your model class will be to supply the ingredients to facilitate the cooking process.
Your model will look somewhat like the following code:
namespace Application\Model; class Cooking { /** * Get the ingredients that will be added to your dish * @return array Containing the list of ingredients...