Я пытаюсь получить Process.php моей контактной формы. Я могу поместить его в папку _media Source, чтобы оказаться в public_html/media/process.php, но не могу попасть в Webroot. Использование СМИ каталоги, но эта часть конфигурации приспосабливает это: < /p>
// Change the file extensions to be considered as media files and are copied to the output directory.
// If you want to add more extensions, add it to the empty merge array, or just override the entire array.
'media_extensions' => array_merge(['php'], \Hyde\Support\Filesystem\MediaFile::EXTENSIONS),
< /code>
Есть ли что -то, что можно сделать в конфигурации? Эта часть выглядит актуальной: < /p>
/*
|--------------------------------------------------------------------------
| Source Root Directory
|--------------------------------------------------------------------------
|
| HydePHP will by default look for the underscored source directories in the
| root of your project. For example, you might want everything in a 'src'
| subdirectory. That's easy enough, just set the value below to "src"!
|
*/
'source_root' => '',
/*
|--------------------------------------------------------------------------
| Site Output Directory
|--------------------------------------------------------------------------
|
| This setting specifies the output path for your site, useful to for
| example, store the site in the docs/ directory for GitHub Pages.
| The path is relative to the root of your project.
|
*/
'output_directory' => 'public_html',
/*
|--------------------------------------------------------------------------
| Source Directories
|--------------------------------------------------------------------------
|
| The directories you place your content in are important. The directory
| will be used to determine the proper page type and the templates used.
| If you are not happy with these defaults, you can change them here.
| Note that these are relative to the `source_root` setting above.
|
*/
'source_directories' => [
\Hyde\Pages\HtmlPage::class => '_pages',
\Hyde\Pages\BladePage::class => '_pages',
\Hyde\Pages\MarkdownPage::class => '_pages',
\Hyde\Pages\MarkdownPost::class => '_posts',
\Hyde\Pages\DocumentationPage::class => '_docs',
],
/*
|--------------------------------------------------------------------------
| Output Directories
|--------------------------------------------------------------------------
|
| Like the source directories, the output directories are also important
| as they determine the final output path for each page type in your
| compiled static site. This change also affects the route keys.
|
| Note that these are relative to the site's `output_directory` setting.
| Setting the value to '' will output the page to the root of the site.
|
*/
'output_directories' => [
\Hyde\Pages\HtmlPage::class => '',
\Hyde\Pages\BladePage::class => '',
\Hyde\Pages\MarkdownPage::class => '',
\Hyde\Pages\MarkdownPost::class => 'posts',
\Hyde\Pages\DocumentationPage::class => 'docs',
],
/*
|--------------------------------------------------------------------------
| Media Directory
|--------------------------------------------------------------------------
|
| This setting specifies the directory where your media files are stored.
| Note that this affects both the source and output directories.
| The path is relative to the root of your project.
|
*/
'media_directory' => '_media',
Подробнее здесь: https://stackoverflow.com/questions/794 ... ot-allowed
Размещение формы для статической сборки веб -сайта - 405 Метод не разрешен [закрыто] ⇐ Php
Кемеровские программисты php общаются здесь
1740055325
Anonymous
Я пытаюсь получить Process.php моей контактной формы. Я могу поместить его в папку _media Source, чтобы оказаться в public_html/media/process.php, но не могу попасть в Webroot. Использование СМИ каталоги, но эта часть конфигурации приспосабливает это: < /p>
// Change the file extensions to be considered as media files and are copied to the output directory.
// If you want to add more extensions, add it to the empty merge array, or just override the entire array.
'media_extensions' => array_merge(['php'], \Hyde\Support\Filesystem\MediaFile::EXTENSIONS),
< /code>
Есть ли что -то, что можно сделать в конфигурации? Эта часть выглядит актуальной: < /p>
/*
|--------------------------------------------------------------------------
| Source Root Directory
|--------------------------------------------------------------------------
|
| HydePHP will by default look for the underscored source directories in the
| root of your project. For example, you might want everything in a 'src'
| subdirectory. That's easy enough, just set the value below to "src"!
|
*/
'source_root' => '',
/*
|--------------------------------------------------------------------------
| Site Output Directory
|--------------------------------------------------------------------------
|
| This setting specifies the output path for your site, useful to for
| example, store the site in the docs/ directory for GitHub Pages.
| The path is relative to the root of your project.
|
*/
'output_directory' => 'public_html',
/*
|--------------------------------------------------------------------------
| Source Directories
|--------------------------------------------------------------------------
|
| The directories you place your content in are important. The directory
| will be used to determine the proper page type and the templates used.
| If you are not happy with these defaults, you can change them here.
| Note that these are relative to the `source_root` setting above.
|
*/
'source_directories' => [
\Hyde\Pages\HtmlPage::class => '_pages',
\Hyde\Pages\BladePage::class => '_pages',
\Hyde\Pages\MarkdownPage::class => '_pages',
\Hyde\Pages\MarkdownPost::class => '_posts',
\Hyde\Pages\DocumentationPage::class => '_docs',
],
/*
|--------------------------------------------------------------------------
| Output Directories
|--------------------------------------------------------------------------
|
| Like the source directories, the output directories are also important
| as they determine the final output path for each page type in your
| compiled static site. This change also affects the route keys.
|
| Note that these are relative to the site's `output_directory` setting.
| Setting the value to '' will output the page to the root of the site.
|
*/
'output_directories' => [
\Hyde\Pages\HtmlPage::class => '',
\Hyde\Pages\BladePage::class => '',
\Hyde\Pages\MarkdownPage::class => '',
\Hyde\Pages\MarkdownPost::class => 'posts',
\Hyde\Pages\DocumentationPage::class => 'docs',
],
/*
|--------------------------------------------------------------------------
| Media Directory
|--------------------------------------------------------------------------
|
| This setting specifies the directory where your media files are stored.
| Note that this affects both the source and output directories.
| The path is relative to the root of your project.
|
*/
'media_directory' => '_media',
Подробнее здесь: [url]https://stackoverflow.com/questions/79451478/posting-a-form-to-static-website-build-405-method-not-allowed[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия