Jump to content

template integration


Othmen215

Recommended Posts

Hi i've been trying to display a template in a controller that's placed in controllers/admin but i cant 😢 any help?

It says that the template cannot be found

----------------------------------------

   /**

     * Create the form that will be displayed in the configuration of your module.

     */

    public function renderForm()

    {

        $helper = new HelperForm();

        $helper->show_toolbar = false;

        $helper->table = $this->table;

        //$helper->module = $this;

        $helper->default_form_language = $this->context->language->id;

     

   

       $file= $this->setTemplate('module:views/templates/admin/configure.tpl');

 

        return $helper->generateForm([$this->getTokenForm()]) .$file  ;

    }

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