I
I
irtf2020-04-07 00:24:49
JavaScript
irtf, 2020-04-07 00:24:49

How to access PHP script via JQuery in DLE?

Good evening.
There is a button on the DLE static page. You need to make sure that when the button is clicked, the JS function is called (there are no problems with this). This function should create a JQuery query. I create it like this:

$.get(' - ПУТЬ -', function(data) {
            alert(data);
        });

jQuery should refer to the PHP script that is in /engine/modules/file.php . But here's the problem: I can't get to this script in any way, because DLE has some kind of its own structure.
Can you please tell me how can I implement this idea?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2020-04-07
@xmoonlight

Normal - nothing. And it is right!
Why do you climb directly into the folder with the modules?
Read about the architecture of DLE applications at your leisure.
Crooked: mod_rewrite on a web server (but I don't recommend doing that!)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question