This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
erodriguez
Hi guys, I want to print my object properties but I dont have a idea. For example I waint tu print blogPosts.categories, usually in php I only need to do
<?php var_dump($categories); ?>
With twig, the equivalente is
{{ dump(categories) }}
But is not working ..
alxy
It should work, however sometimes its really a bit tricky to make it work. I can recommend the Debugbar plugin, which will register the debug()
twig function. This will dump the variable/object to the debugbar.
1-2 of 2