In ZF1 we use partial in layout.phtml file something like that
$this->partial('header.phtml', array('vr' => 'zf2'));
How we can do the same in ZF2?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
this can be achieved by
you can access the variable in view using
don’t forget to add following line in your view_manager of module.config.php file.
after adding it looks like this