If I have a view and want to see all the set variables for the particular view, how would I do it?
Share
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.
Variables assigned to a
Zend_Viewobject simply become public properties of the view object.Here are a couple of ways to get all variables set in a particular view object.
From within a view script:
From a
Zend_Viewobject in a controller:The last example would work just as well for a view object created manually using
$view = new Zend_View();