Jump to content

class ModuleFrontController not found


Recommended Posts

Hi,

I am creating a front controller for my module, but I have an error.

Fatal error: Class 'ModuleFrontController' not found

My file is :

<?php
/* /modules/ps_epos/controllers/front/callback.php */
class Ps_eposCallbackModuleFrontController extends ModuleFrontController
{
    public function initContent() {
        parent::initContent();
        $this->ajax = true; // enable ajax
    }
....
}

Prestashop version 8.1.7

class Ps_epos

I tried ModuleFrontController, ModuleFrontControllerCore, Ps_eposCallbackFrontController, Ps_eposCallbackModuleFrontControllerCore

and read documentation https://devdocs.prestashop-project.org/8/modules/concepts/controllers/front-controllers/

Any idea ?

Link to comment
Share on other sites

12 hours ago, Prestashop Addict said:

Dis you respect folders hierarchy?

ps_epos\
              controllers\
                               front\Callback.php

nb: ps_ prefix is used normally for native ps modules

Did you respect folders hierarchy? - Yes /* /modules/ps_epos/controllers/front/callback.php */

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...