Miuranga
Miuranga

Reputation: 2463

How to identify prestashop Friendly URL active or deactivate in controller file.

I want to know how to get the prestashop Friendly URL is active or not in my custom module controller. enter image description here

Is there any core function or any other method to get those detail in controller file ?

Upvotes: 0

Views: 523

Answers (1)

TheDrot
TheDrot

Reputation: 4337

Yes by getting the PS_REWRITING_SETTINGS configuration.

$friendy_url_active = Configuration::get('PS_REWRITING_SETTINGS');

Upvotes: 3

Related Questions