Jump to content

(1/1) SmartyException 0():Missing '$template' parameter


SettleR

Recommended Posts

Hi,

Anyone know how to solve this error i get?

 

in smarty_internal_templatebase.php line 177

at Smarty_Internal_TemplateBase->_execute(null, null, 'layouts/layout-full-width.tpl', null, 0)in smarty_internal_templatebase.php line 116

at Smarty_Internal_TemplateBase->fetch(null, null, 'layouts/layout-full-width.tpl', null, false, true, false)in SmartyDev.php line 40

at SmartyDev->fetch(null, null, 'layouts/layout-full-width.tpl')in FrontController.php line 683

at FrontControllerCore->smartyOutputContent(null)in FrontController.php line 667

at FrontControllerCore->display()in Controller.php line 312

at ControllerCore->run()in Dispatcher.php line 515

at DispatcherCore->dispatch()in index.php line 28

Link to comment
Share on other sites

  • 3 years later...

if this is an issue in in custom module controller try add this:
 

$this->template = 'module:modulename/views/templates/front/view.tpl';

into controller constructor, and create empty view.tpl on that path.

I think this is because when controller is initiated it needs some to have some value for this->template, because display() function in frontController throws exception, when var is empty

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