Jump to content

how to call ModuleFrontController inside in to hook


Tje123

Recommended Posts

I'm new to prestashop and developing new module for carrier.

 

Calender.php

 

    class delivery_schedulercalendarModuleFrontController extends ModuleFrontController

    {

      public function initContent()

      {

        parent::initContent();

        $this->setTemplate('module:delivery_scheduler/views/templates/front/calendar.tpl');

    

      }

    

      public function run()

      {

        return 'abc';

      }

    }

 

i want to display `abc` in calender.tpl

 

     public function hookDisplayCarrierExtraContent()

        {

         //how to call `run()` function here

        }

Edited by Tje123 (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...