3
Các tham số bootstrap MAGE_DIRS trong CLI
Trong pub/index.php, mã sau đây được sử dụng để đặt URL thay đổi cho phương tiện và tài sản tĩnh thành bỏ qua "/ pub": $params[Bootstrap::INIT_PARAM_FILESYSTEM_DIR_PATHS] = [ DirectoryList::PUB => [DirectoryList::URL_PATH => ''], DirectoryList::MEDIA => [DirectoryList::URL_PATH => 'media'], DirectoryList::STATIC_VIEW => [DirectoryList::URL_PATH => 'static'], DirectoryList::UPLOAD => [DirectoryList::URL_PATH => 'media/upload'], ]; $bootstrap …