let gii generate model base classes somewhere else

Hi All

can I define the output directory for model classes ?

What I want is all the generated model classes inside, for example, .../protected/models/generated

cheers

Under "model path"… click on "application.models" and you will get the input filed with an explanation on the right side…

by "generated model classes" you mean generated by Gii ?

if so, just change where it is saved by changing "Model Path", in your case "application.models.generatad" would do it

and then import it with the rest of your models in the config file




'import'=>array(

    	//base models

		'application.models.*',

    	//your models

    	'application.models.generated.*',

    	//base components

    	'application.components.*',

	),



thanks a lot