Jump to content

setTemplate wrong path


Recommended Posts

Hello, in my controller I tried to display .tpl file.

I have admin controller, it's working (controller created, tab created).

My code in admin controller :

public function initContent()
{
    parent::initContent();
    $this->setTemplate('module:mymodule/views/templates/admin/edit.tpl');
}

But I have next error:

Untitled2.thumb.png.3e380b3ad793a865925c0ec38e843894.png

Path is absolute, going to admin folder, but I need only to /test_web/modules/mymodule/views/admin/edit

 

What can I do?

Link to comment
Share on other sites

  • 1 year later...
  • 3 months later...

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