Hello everyone,
this is my first post here, and i hope its the right place for my question.
I am getting started with PW and right now, im trying to bring a existing static Site to PW
In this static site i was working with some PHP to import svg code
echo file_get_contents("img/icons/ticket.svg")
I placed the img folder in the assets folder but now i am having troubles to point at this file using
$config->urls->assets
i was trying to do something like
echo file_get_contents("$config-urls-assets/img/icons/ticket.svg")
but of course this fails and as i am not quite good with PHP i do not know how to nest this php to get what i want.
I don`t want to use fields to store the svg code, because i need different icons on one page and i do not want to create multiple field for that.
Any advice is highly appreciated.
Thank you.