Posts by italolelis • 66 points
6 posts
-
1
votes2
answers261
viewsA: Doubt in the Middleware Before of the Silex Controllerprovider
I think if you do that it solves. // index.php $app->before(function() use($app){ $login=new \JN\Core\Login($app); if($login::verificaLogin()['status']==true){ $app['twig']->addGlobal('login',…
-
1
votes2
answers405
viewsA: Why is the route not recognized by Silex when there is a "/" bar at the end of the requested url?
This is an expected behavior of the Symfony route component https://github.com/silexphp/Silex/issues/149. However, there is a page in their documentation that explains how to create a redirect…
-
-4
votes2
answers1547
viewsA: Generate PDF report with PHP
A suggestion would be to use a report library, which generates outputs such as PDF, CSV, World, Excel, etc... All from an HTML I created this: https://github.com/umbrellaTech/simpletablereport…
-
0
votes1
answer159
viewsA: How to import CSV into Symfony2
Well I don’t know if it would be worth testing, but you already tried not to create the request, but to use what is injected in the action? public function saveAction(Request $request) { $form =…
-
1
votes5
answers801
viewsA: Is it possible to upload files without using PHP?
Yes it would only be possible to upload to Localstorage or Websql, but you would need to treat the image (possibly using Base64), so you can do Base64’s local Storage. Remembering that the Base64…
-
2
votes1
answer125
viewsA: How to check if the server is sending content using GZIP compression?
You can use the google extension called pagespeed: https://developers.google.com/speed/pagespeed/ But in a quick way... If you use Google Chrome press F12 and you will be taken to Developertools (a…