Jump to content

Override doesn't work


gonliSs

Recommended Posts

Hello,

 

I use the newest presta.

I have such file in override\controllers:

class FrontController extends FrontControllerCore
{
    public function setMedia()
    {
        parent::setMedia();   
        $this->addCSS(_THEME_CSS_DIR_.'custom.css');  
    }
}

(I tried also with <?php and ?> at the beginning and end of this file)

 

And it doesn't work. It does not include the custom.css file to my shop. I was trying delete file: cache/class_index.php but it won't help.

 

I was trying to create new override controller (ProductController) but it also doesn't work. It seems that overrides doesn't work on my shop. Could anyone help me with that?

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
×
×
  • Create New...