Jump to content

Controller is missing or invalid


Recommended Posts

Hi everyone,

I'm sorry if this question has already been answered, but I try to build my first module and I can't linked it with my own controller, I have this error. Have you any idea to solved that ?

Thank you in advance ^^

Code in main file :

public function _installTab()
    {
        $tab = new Tab();
        $tab->active = 1;
        $tab->class_name = 'AdminPromotions';
        $tab->name = 'Promotions';
        $tab->module = $this->name;
        $tab->id_parent = (int) Tab::getIdFromClassName('DEFAULT');
        $tab->icon = 'settings_applications';
        try {
            $tab->save();
        } catch (Exception $e) {
            echo '_installTab: ' . $e->getMessage();
            return false;
        }

        return true;
    }

 

 

missing_invalid.png

Edited by Mhyran (see edit history)
Link to comment
Share on other sites

  • 5 months later...

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