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
render html as file
atabak
August 2020
hi
i need do that:
$data = [];
$rendered_form = View::forge($form['content'], $data)->render();
render html + php as view(include some fuelphp classes and helper functions like __ for translate and send some data to this content).
content save in db and dynamic.
View Class only use file.(or i cant find in docs)
thanks.
Harro
August 2020
Accepted Answer
A view file in a string is not supported out of the box.
Have a look at
https://bin.fuelphp.com/snippet/view/PH
This is from one of my old apps, it might be of some use for you.
atabak
August 2020
thanks Harro.
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,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
atabak
August 2020
Harro
August 2020