First let me state that I have Gii working and I’ve even been able to extend it following this guide:
There are no problems with Gii using it via the default interface.
Now I’m trying to access some of the functions of Gii via code rather than the user interface so that I can integrate them into my own user interface. My first step was to create an instance of the Gii module and then try to access the generators so I could loop through them to find the one I wanted and then proceed from there to pass it the required values and then run the prepare function to actually create the model file.
$gii = Yii::app()->getModule('gii'); print_r($gii::findGenerators());
I’m not really sure where to go from here. I guess that findGenerators isn’t really meant to be accessed this way, but how would I go about achieving the same result?
Should I just skip to using CCodeGenerator and CCodeModel somehow?