Customize Gii Code Generator For Internal Use.

I am new to yii.

I want to use Gii Code Generator in my application for generate model and CRUD dynamically.

Like i am giving rights to choose field for their form.

they enter details for fields and click button for generate form at that time in back hand i want to generate table for that all field, model and crude for that.I can generate table in back hand but when i want to generate model and crude i have show interface of gii. I can’t hide it from User so please help me out if any one knew how to generate all in back hand.