search

Home  >  Q&A  >  body text

php - TP3.2 problem with registering namespace

There is a CodeBase directory at the same level as the index.php entry file. I set it as follows in the configuration file:
PHP code

'AUTOLOAD_NAMESPACE' => array(
    'Codebase'    => './CodeBase',
)

Setting 'Codebase' => __ROOT__.'/CodeBase' also doesn't work

How should I write this path? I can’t find the response constant, and ./ doesn’t work either. Thank you

给我你的怀抱给我你的怀抱2718 days ago674

reply all(1)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-06-05 11:09:55

    __DIR__Try it

    reply
    0
  • Cancelreply