Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zend are view variable available inside view helpers?

I am wondering if Zend view variables are available in my view helper class without passing them in directly as parameters

thanks

Luca

like image 313
luca Avatar asked Feb 24 '23 02:02

luca


1 Answers

As all view helpers have reference to the view in their $view property, the answer is yes.

What you won't know from the helper side is which properties are available. It would be better to pass any required properties to the helper at call or construction time.

like image 136
Phil Avatar answered Feb 26 '23 20:02

Phil