Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Настройка дуступа к модулям и отображение ошибок


 Share

Recommended Posts

Подскажите пожалуйста как запретить доступ к модулям по прямой ссылке? Может это обсуждалось где-то?

example.com/index.php?route=extension/credit_card/sagepay_direct/delete

 

Для чего вообще в админке есть пункты про ошибки (ниже)? Они используются где-то?

Искал в коде и не смог найти... Эти настройки хранятся в бд, а на сайте используются из /system/config/default ...

Может кто-то поделиться как настроить конфиги и т.д.?

Fatal error я так понимаю в любом случае выводится..?

 

Показывать ошибки
 Да  Нет
Записывать ошибки
 Да  Нет
Link to comment
Share on other sites


В 25.12.2017 в 23:46, dotman сказал:

Подскажите пожалуйста как запретить доступ к модулям по прямой ссылке?

только в самом модуле
или в 2.3. в router.php

Link to comment
Share on other sites

В 29.12.2017 в 13:02, chukcha сказал:

только в самом модуле
или в 2.3. в router.php

В самом модуле - это вы про контроллер?
Можно по подробнее (желательно с примером), как в роутере это сделать?

Link to comment
Share on other sites


7 минут назад, dotman сказал:

Можно по подробнее (желательно с примером), как в роутере это сделать?

анализировать

 

$this->request->server['REQUEST_URI']

$this->request->get['route']

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.