Hi, im trying to create a code generator that creates automatic rules, im trying to use the function of the gii inside the model to automatize the creation of the rules , but the problem is that i cant call the functions of gii inside the model class , do you know how can i do this , how can i call gii functions inside the model?
I’ve already made my own templates , but every time i change something in the database , i need to rebuild the model, once i overwrited my code >__< , im trying to make a way to automatically get my model rules to make my work easyer.
This is what I use anyway, but I have made several changes to the way Awegen generates the classes to suit my needs and to integrate my know-how.
With that method you can generate the base classes (and overwrite the previous versions) because you are keeping your specific methods in the derived classes. I do it like that. I create a migration, perfect the migration in my dev environment, create the new BaseModelClass by overwriting the previous one, test and voilà, it’s done.