I cannot send form. PHP file is not accessible., error 404

I created a contact form with action=“{{ url(‘/’) }}/themes/dyakonov/feedback.php”

but console returns error 404

Additionaly i commented in .htaccess strings that blocks php files

Can someone help me?


Hi @Golembivskyi

This is not how an MVC system works.
If you would like to create a contact form with OctoberCMS this tutorial video can be useful:
Making Websites With October CMS - Part 18 - Creating Contact Form - YouTube

…but I think you should also watch the full Basic concepts of OctoberCMS video as well from this playlist to learn how an MVC (model-view-controller) system works and how file structure looks in OctoberCMS:
Making websites with October CMS - Part 02 - Basic Concepts - YouTube

These tutorials were created for the very first version of OctoberCMS but the basic concept did not changed since the version (only the interface and additional features) so I hope it will help you.

In your case, to handle the request when form is submitted, you could put a data-request attribute on your form. Data Attributes API - October CMS - 3.x

The function called when submitted the form can be defined in your page itself:

url = "/aluminium-window"
==
function onSubmitForm()
{
    // YOUR FUNCTION HERE
}
==
<section class="contacts">
.....

or you create a component and put the function inside.