Jump to content

Controller not rendering view


Chill_user

Recommended Posts

Hello to all,

I created admincontroller in /mymodule/controllers/admin/demo.php

Controller is running, but I can't show the content of an tpl file

Code in controller:

public function initContent()
    {
        parent::getContent();
        $this->context->smarty->createTemplate('views/templates/admin/demo.tpl', $this->context->smarty);
        $this->setTemplate('views/templates/admin/configure.tpl');
	}

The tamplates exists, no errors about templates, but "panel" bar is now showing content

 

123.png

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