Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
Including a remote view file
nearo
June 2013
Hello.
I am working on a project that calls for the template files to be stored outside of the fuel application, on a separate server, in fact.
What would you suggest to be the best way to go about accomplishing this task?
I've tried to dissect the Core Fuel View class, but there is too much magic in there for me to pinpoint how to accomplish a remote include.
The Core class seems to do a couple things:
1. It looks for the specified template in the views directory
2. It removes the file extension
My goal is something like this:
$template = "
http://www.remoteserver.com/template/home.html
";
$response = \Response::forge(\View::forge($template], $data, false));
Any pointers or insights you can give me will be much appreciated.
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,089
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
261
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52