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 Verton
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,057
General
↳ General
3,340
↳ Job Board
13
↳ Installation & Setup
213
Packages
↳ Oil
212
↳ Orm
699
↳ Auth
258
Development
↳ Tips and Tutorials
125
↳ Code share
145
↳ Applications
51
In this Discussion
atabak
August 2020
Harro Verton
August 2020