Save a view on the disk with all assets linked in the view (CSS, JS, IMG).
-
Add the module in your project
composer require "photon/utils-viewdumper:dev-master"
or for a specific version
composer require "photon/utils-viewdumper:1.0.0"
-
Declare views in your photon project
-
Enjoy !
use \photon\utils\viewDumper;
viewDumper::fromView('/tmp/view.html', 'myview');
use \photon\utils\viewDumper;
viewDumper::fromView('/tmp/url.html', '/best/page/ever');