[SLOVED] module path can set in config?

in main.php


'modules' => array(

    'srbac' => array(

        'path' => 'path/to/srbac',  <--- can set path?

    ),

),

global module path, can set in main.php

‘modulePath’ => ‘path/to/modules’,

but if i want to special module path, how can i do?

qiang?

May be you should try basePath:




'modules' => array(

    'srbac' => array(

        'basePath' => 'path/to/srbac', 

    ),

),



what do you mean by a special path?


'modules' => array(

    'srbac' => array(

        'path' => 'path/to/srbac',  <--- can set path?

    ),

),

I think it does not work well.

I try chang the code user


'modulePath'=>'../modules',

then i use gii to run create module, it create files under this setting path.

but if i visit the moude and it’s path show error. page don’t show .

the error code like


require(H:\php\cake\app\modules\admin\AdminModule.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory

the module admin path is in the above app … so it’s run bad.

is there any one can help me solvetion

‘class’=>‘directory.alias.className’,

You must set your modules inside your config/main.php file

eg:




...

'modules'=>array(

   'admin',

),

...