eZ Community » Blogs » Thiago Campos Viana » Tip: How to pass $view_parameters...

By

Tip: How to pass $view_parameters variable to module templates

Thursday 08 September 2011 4:20:14 am

  • Currently 3 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Have you ever tried to get a view_parameter variable - /(example)/value - inside your module template? Here's what you need to do in your module_view.php file.

...
$uri = eZURI::instance( eZSys::requestURI() );
 
$viewParameters = $uri->UserParameters();
$tpl->setVariable( 'view_parameters', $viewParameters );
...
 
Proudly Developed with from