Размещение формы для статической сборки веб -сайта - 405 Метод не разрешен [закрыто]Php

Кемеровские программисты php общаются здесь
Ответить
Anonymous
 Размещение формы для статической сборки веб -сайта - 405 Метод не разрешен [закрыто]

Сообщение 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',


Подробнее здесь: https://stackoverflow.com/questions/794 ... ot-allowed
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Php»