How can I quickly acces and view variables that are used in the controller ? I use xdebug, but often it is overkill to see what is inside an object when passing trough the controller.
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.
You can get the variables defined in current scope using get_defined_vars() method and log it using
Monologlibrary e.gI would recommend installing FirePHP extension in Firefox because in dev mode
FirePHPhandler is automatically enabled so you can see the info messages in firebug console. For more info about logging checkout this cookbook entry.