Jump to content

Overrides issues


Recommended Posts

Hello.

I have created a override at the following location:
override/controllers/front/OrderController.php

Containing following:

<?php
class OrderController extends OrderControllerCore
{
    public function initContent()
    {
        return 'testing from ordercontrolleroverride';
    }
}

When I go to order page (where the OrderControllerCore is being loaded) nothing is being printed out.
I have followed the documentation, as far as I can see this is how they explain it should be done.

Am I missing something? Have clear cache in the Back-office and manually with bash: "rm -rf var/cache"

Can see there's lots of discussion related to these overrides, but in the official documentation it's written
like it can be used. Using PS 1.7.8

Running out of ideas 😐

 

 

Edited by soduno (see edit history)
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...