How create in module with Crud Generator

Hello,

then creating in modules dir admin with Crud Generator get this error




Alias "admin.models.SysMessage" is invalid. Make sure it points to an existing PHP file.






/var/www/yii/framework/YiiBase.php(310)


298         if($isClass && (class_exists($className,false) || interface_exists($className,false)))

299             return self::$_imports[$alias]=$className;

300 

301         if(($path=self::getPathOfAlias($alias))!==false)

302         {

303             if($isClass)

304             {

305                 if($forceInclude)

306                 {

307                     if(is_file($path.'.php'))

308                         require($path.'.php');

309                     else

310                         throw new CException(Yii::t('yii','Alias "{alias}" is invalid. Make sure it points to an existing PHP file.',array('{alias}'=>$alias)));

311                     self::$_imports[$alias]=$className;

312                 }

313                 else

314                     self::$classMap[$className]=$path.'.php';

315                 return $className;

316             }

317             else  // a directory

318             {

319                 if(self::$_includePaths===null)

320                 {

321                     self::$_includePaths=array_unique(explode(PATH_SEPARATOR,get_include_path()));

322                     if(($pos=array_search('.',self::$_includePaths,true))!==false)



What i do bad ?

Well, does it point to an actual file? It sounds like your model doesn’t exist. Did you try it without the prefix? (Just SysMessage)

don’t written in Model Path this




application.modules.admin.models



and was copped to application.models