thinkphp 5.0.24 attention to detail multi-module configuration

 

 

/ *
Index.php file for this section can only be generated by build.php generation module such as admin beginning hotel lowercase letters begin with a capital of modules if you set the system will not find as Hotel Admin module

// read automatically generating a definition file
$ = Build the include '../build.php';
// run automatically generating
\ think \ Build :: run ($ build);

*/

 

 

 

///////////////////////////////////////////////

This is the default file //build.php three modules

return [
// public file generating application
'__file__' => [ 'common.php ', 'config.php', 'database.php'],

// definition of demo module automatically generated (generated in accordance with the actual definition file name)
'index' => [
'__FILE__' => [ 'common.php', 'the config.php'],
'__DIR__' => [ 'behavior ',' Controller ',' Model ',' View '],
' Controller '=> [' Index '],
],
// add a linux admin module which is case sensitive
' DDMIN '=> [
' __FILE__ '=> [' common.php ',' the config.php '],
' __DIR__ '=> [' behavior ',' Controller ',' Model ',' View '],
' Controller '=> [' Index '] ,
],
// linux module increases a hotel which is case sensitive
'hotel' => [
'__FILE__' => [ 'common.php', 'the config.php'],
'__DIR__ '=> [' Controller ',' Model ',' View '],
' Controller '=> [' Index '],
],
// more other modules defined
];

 

//////////////////////////////////////////

 

Guess you like

Origin www.cnblogs.com/trip-j/p/12035656.html