Jump to content

how to call ModuleFrontController inside in to hook


Tje123
 Share

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)

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More