Use tags within php


I'm trying to use parsed tags in my php code, however they just render as the variable or tag name, with the curly brackets. Is it possible to use Statamic values in php? E.g.:

echo "{{ homepage }}";

Why do you want to do this, you might ask. I have this php code which makes a PDF file. The PDF contains a package label with address and barcode. What I would like to do is get the info from a certain entry and use it in the php code that creates the PDF.

>>>>>>> Unanswered <<<<<<<
10 Replies