![]() |
Using string variables in simple html dom url - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Using string variables in simple html dom url (/showthread.php?tid=62332) |
Using string variables in simple html dom url - Liverpool_FC - 07-03-2015 I am using pyrocms 2.2, which use the codeigniter engine. I would like to use string variables at the simple html dom url variable in the template php. I already added simple html dom to the library. If I try to parse full url address, then parsing is successful. But I would like to parse specified data, like $url = 'http://address.com/{{ category:country }}'; If i echo the $url then I receive the address which I need to parse. But parsing is not successful, because I receive error messages about "failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request", like the $url variable is empty and simple html dom can't parse it. I hope some expert could help for me, thanks. |