Questions tagged as 'silex'

0
answers

Run AngularJS in SILEX project

Personally I have an entire backend made in SIlex running perfectly, there my client sent me the frontend made in Angular, as I have never used the Angular would like to know where I put the htmls, JS, CSS of this frontend. And as I create the d...
asked by 17.04.2015 / 17:31
1
answer

How to get all the parameters in a GET request with Silex?

I'm having my first contacts with the Silex framework. I have the following script to be able to capture a GET parameter: $app->get('/', function (Request $request, Silex\Application $app) { return sprintf('Meu nome é %s', $r...
asked by 10.11.2016 / 18:17
1
answer

How to upload to Silex?

I did some research to learn how to upload files in Silex Framework, but I did not find anything about it. Is there any way to do this through Silex? Or would I have to do with nail only with PHP?     
asked by 17.01.2017 / 15:06
1
answer

How to redirect every HTTP request to HTTPS in Silex?

In Silex, is there any possibility of making a filter that redirects a url to https when it does not have https? I know how to do this in Laravel, but I would like to do the same with Silex. For example, when I access the url http://www...
asked by 09.03.2017 / 17:20
1
answer

Fatal Error: Silex \ Application :: share ()

I'm developing an API in Silex and when trying to test it on my server, I'm encountering the following error:    Fatal error: Call to undefined method Silex \ Application :: share () in /var/www/App/Config/config.php on line 24 And the...
asked by 24.07.2017 / 21:34
1
answer

How to put data in the session flash when the redirection is done in Silex?

Some frameworks have a feature called Session Flash, where it is possible to store a certain value in the session and, when it is accessed, is immediately removed from the session, which is useful for displaying error messages on certain request...
asked by 18.04.2017 / 18:11
1
answer

Organization of directories in the Silex framework

Someone knows some link to start with this microframework, I searched but only think in English and is not complete, only shows the install part. I'm having difficulty setting up the folder structure: controllers, models. My structure: vend...
asked by 26.03.2015 / 15:35
0
answers

Select2 displays value instead of text

I have some fields that use Select2 to do a basic CRUD, but querying some fields from another base. The question is, when I click refresh, I put all the values in the table (dataTables) in an array, and then when I go to Select2, it does not dis...
asked by 11.11.2015 / 14:18
1
answer

Run SILEX site in shared hosting

Personal I developed a site using the Silex Micro Framework for a client and I need to host it on locaweb with a shared hosting. Silex as well as Laravel and other frameworks index.php is not in the root of the site but in the Public folder. In...
asked by 24.03.2015 / 19:36
1
answer

Silex can not find routes

I have a Silex 2.0 application with PHP 7.0 and Apache 2.4 (on port 8080) with the following structure: silex/ | - vendor/ | - web/ | - index.php | - composer.json | - .htaccess composer.json { "require": {...
asked by 11.01.2017 / 22:02