Jump to content

[SOLVED] Admin template over ModuleAdminController


rickczsu

Recommended Posts

Hi. Maybe easy solution but I spent 10 hours finding it.

I made module. In my module I made controller in mymodule/controllers/admin folder. I installed module and it works, but I can´t figure out how to show my template. 

My code is 

 

class showmeController extends ModuleAdminController {
public function __construct()
{
 
parent::__construct();
 
}
 
public function initContent()
{
return $this->display('display.tpl');
}  
 
}
}

When I use initContent, everything faults. When I use getContent I see the title of my controller, but nothing else. Any help? Please....
Tpl file is located in modulefolder/views/templates/admin
Edited by rickczsu (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...