Zend Framework 2 : MvcEvent – get __NAMESPACE__ / Module Name from Layout
I just created a module named ZfCommons that can initialize common functionality over module. For this post, i want to introduce a set ‘layout variable’ functionality with example : __NAMESPACE__, so we can echo-ing the module name / __NAMESPACE__ from layout.
12 comments