Hi everyone,
I am attempting to automate the Gii functionality upon app creation in order to build a bespoke CMS that can be used multiple times. So far i have been able to create the script that asks the user for DB connection details and sets up users and user authorisation by using a prebuilt model, what i want to do now to extend this is to automate the Model and CRUD generation for other features chosen by the user whilst going through the setup process. There will be a selection of SQL files that generate only the needed tables for the users bespoke application and from this i wish to generate the Model and CRUD files.
I have been tracking the POST and GET data from manual Gii generation and have followed the process to Framework/gii/generators where there are folders for each of the diffferent options in Gii, e.g. model and crud etc. in each of these folders are the template(s), the views, *code.php and *generator.php. From what i can tell the *code is the controller which actions the generation using the template(s). what i cannot figure out and what im hoping the community can help me with is, from here what do i neeed to pass the variables to in order to automate the Model and CRUD generation without using the Gii GUI.
Hope someone can help as i have been pulling my hair out at this for days.
Kind Regards
Nathan