i am trying to make a custom gii module that will import a class and then ocverride some methods
im doing as such
Yii::import(‘system.gii.genererators.crud.CrudCode’);
class newCrudCommand extends CrudCode {
…
}
i am getting the error
include(/var/www/framework/gii/genererators/crud/CrudCode.php): failed to open stream: No such file or directory
is there a way to include a bass class like i am trying to do?
i also tried copying the CrudCode.php file to the generators directory and calling it like
Yii::import(‘system.gii.genererators.mygenerator.CrudCode’);
also
Yii::import(‘CrudCode’);
and
Yii::import(‘CrudCode.php’);
all give the same error