I have been trying to setup Yii2 on a docker container. So far it worked great and I managed to make it run smoothly so far. Whenever I generate code with Gii however, the generated files only appear within the docker container in
However, I need to make the generated code appear on my local machine and mount it into the docker container after I made my adjustments to it.
To wrap it up, I have two questions here:
First, is how do I make the generated code appear on my local machine?
Second, why does Gii generates the code on the container? I do not quite understand the behavior here.