QuestionHow to check is the module enabled?

If you will find a grammar error on this page, please select it with your mouse and press Ctrl+EnterThank you.

Hi.
I need to show some text if the module "filter" is enabled. How can I do that? 

I suppose that the php code should be like this:
<?php if [the condition what I need ] { ?>
   My text
<?php } ?>
Name: 
trafbite

Comments

sv2109's picture
sv2109 wrote:

Try this code:

if ($this->config->get('modulename_status')) {
  //....do something
}

31.10.2014 19:58

Add new comment

CAPTCHA
Spam protection
Image CAPTCHA
Enter the characters shown in the image.
You are reporting a typo in the following text:
Simply click the "Send typo report" button to complete the report. You can also include a comment.