Hi if I undesteand first you can create the model and second you want to create the controller and view file and set the action URl urlManager on main.php file.
That is not what I mean. I can create everything. But I want to create my own “Generator” and can’t figure out what is called when you go to the path “index.php?r=gii/myGenerator” because this paths are created somehow dinamically.
In your first image there is a menu on the left "Generators". I have added another element to that menu (copied the default "model" generator and I want to change something in it.
Now when i press the "Preview" button the form gets submitted but I can not find the code that is executed when the "Preview" button is pressed.
You can open the "gii" or "giix" and see for yourself, the routes are handled different.
I’ve added a new generator called “Table generator” by copying the default “model” generator from system.gii.generators.model to system.gii.generator.table and also changed everywhere “model” to “table” (it’s the last one in the left menu)
Here’s the problem:
I can not find the code that get’s executed when the “Preview” button is pressed. I see that there is some validation going on, and after that a model is created, but I can’t find the code that does all that stuff