gunter Posted February 11, 2018 Share Posted February 11, 2018 How can I load a file and use it like page template, populate variables and render it? There is such a functionality, I searched 15 minutes, but I cannot find it! Link to comment Share on other sites More sharing options...
flydev Posted February 11, 2018 Share Posted February 11, 2018 Hi, it look like you are looking for that: https://processwire.com/blog/posts/processwire-2.5.2/#new-wirerenderfile-and-wireincludefile-functions 7 Link to comment Share on other sites More sharing options...
gunter Posted February 11, 2018 Author Share Posted February 11, 2018 Thank you! That´s it! 1 Link to comment Share on other sites More sharing options...
Robin S Posted February 12, 2018 Share Posted February 12, 2018 Also note that in PW3 wireRenderFile() and wireIncludeFile() are $files->render() and $files->include() respectively (those earlier functions now just call the $files methods internally). 4 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now