First let me state that I have Gii working and I’ve even been able to extend it following this guide:
http://www.yiiframework.com/doc/guide/1.1/en/topics.gii#creating-new-generators
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.
I tried:
$gii = Yii::app()->getModule('gii');
print_r($gii::findGenerators());
That returns:
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?
Thanks,