Most voted "silex" questions
Silex is a microframework for PHP. It is based on the components of Symfony. It is built on the foundations of Symfony and Pimple.
Learn more…27 questions
Sort by count of
-
8
votes2
answers405
viewsWhy is the route not recognized by Silex when there is a "/" bar at the end of the requested url?
I’m starting my MVC studies with Silex today, but I’m having a hard time creating routes by accessing addresses containing a bar at the end. Example: http://site.com.br/home/ I already got access to…
-
6
votes2
answers307
viewsBest practice for client to choose response format (JSON / XML)
I would like to know the best coding practice that allows the client to define the response format for the request he made, which can also include filters, conditions, ordering, etc... I made a…
-
5
votes1
answer325
viewsHow to work with Séssions at Silex
Good night, I have a question about how to include, change and delete data in the Silex Session. Its API documentation is very simple and without explanation. Is the following: I need to create a…
-
4
votes0
answers56
viewsError 404 with Silex
Talk guys, I’m developing a system for Web, I don’t really know how to handle web programming, but come on: So all my controllers, index, htaccess, td right, so much so that the project is working…
-
4
votes3
answers327
viewsUpload a file with parameters in Silex with Angular-File-Upload
I am doing a work with Angular (version 1.5.8) and using Silex as Web Service. To send the file to the Web Service I am using Angular-File-Upload (version 1.5.1) and my Angular service is like this:…
angularjs upload angularjs-directives file-upload silexasked 8 years, 4 months ago Vinicius da Silva 131 -
3
votes2
answers218
viewsRunning Silex on the shared provider
I just uploaded a site to Locaweb on a simple and shared Linux hosting, only it didn’t work for once. I imagine it is because the index is not in the site root, but inside the folder public.…
-
3
votes0
answers206
viewsRun Angularjs in SILEX project
Guys I have a backend all made in Silex running perfectly, then my client sent me the frontend made in Angular, as I never used the Angular like to know where I put the htmls, JS, CSS of this…
-
3
votes1
answer132
viewsDoctrine ORM returning array[0] in find
I have a question. I implemented Doctrine with Silex, created the entity, the Repository and the service, but when it comes to doing a search with findByEmail() for example, to display the result I…
-
3
votes1
answer395
viewsIs there any way to use Laravel Eloquent in the Silex microframework?
I’m refactoring a website structure and moving on to the Silex microframework. I wonder if there is any way to use the Laravel Eloquent ORM, to connect with the database. I read in the documentation…
-
3
votes2
answers184
viewsDo data received via Request using Doctrine need to be processed?
I’m developing a new project, it’s the first time I’m using Doctrine with Silex and I am in doubt as to the receipt of information through forms. I receive the data from forms through the Request of…
-
3
votes1
answer223
viewsWhat is the overhead when using Doctrine?
A few days ago I was discussing with some colleagues about performance and high availability. In the middle of the discussion one of the points raised was that when reaching a certain number of…
-
2
votes1
answer238
viewsHow to get all parameters in a GET request with Silex?
I’m having my first contacts with the Silex framework. I have the following script to capture a parameter GET: $app->get('/', function (Request $request, Silex\Application $app) { return…
-
2
votes1
answer204
viewsHow to upload to Silex?
I did some research to know how to upload files in Silex Framework, but I found nothing about it. Is there any way to do this through Silex? Or would I have to do with nail only with PHP?…
-
1
votes1
answer80
viewsRun SILEX website on shared hosting
Staff have developed a website using Silex Micro Framework for a client and need to host it on Ocaweb with a shared hosting. Silex as well as Laravel and other frameworks index.php is not in the…
silexasked 9 years, 9 months ago Joao Nivaldo 1,229 -
1
votes1
answer166
viewsDirectory organization in the Silex framework
Someone knows some link to start with this microframework, I searched but only find in English and is not complete, just shows the installation part. I’m having trouble assembling the folder…
-
1
votes0
answers135
viewsSelect2 displays value instead of text
I have some fields that use Select2 to make a basic CRUD, but consulting some fields from another base. The question is, when I click update, I put in an array all table values (dataTables) and then…
-
1
votes1
answer106
viewsHow to redirect all HTTP requests to HTTPS in Silex?
In Silex, there is some possibility of making a filter that redirects a url to https when it does not have https? I know how to do it in the Laravel, but I’d like to do the same operation with…
-
1
votes1
answer52
viewsHow to put data in the session flash when redirecting to 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, it is immediately removed from it, which is useful to show…
-
1
votes1
answer100
viewsFatal Error: Silex Application::share()
I am developing an API in Silex and while trying to test it on my server, I am encountering following error: Fatal error: Call to Undefined method Silex Application::share() in…
-
0
votes2
answers261
viewsDoubt in the Middleware Before of the Silex Controllerprovider
Opa to all of you, Personal I have several classes that follow this structure: class TestController implements ControllerProviderInterface { public function connect(Application $app) { $adm =…
-
0
votes1
answer229
viewsGet data on a PUT route using Silex
I would like to know how to obtain data passed to a route put using the Silex. For example : $app->put('foo/{id}', function(Request $request, $id) use ($app){ return…
-
0
votes1
answer256
viewsArray php go through
To the array: Array ( [45] => Array ( [car] => stdClass Object ( [consortiums] => stdClass Object ( ), [92] => Array ( [car] => stdClass Object ( [consortiums] => stdClass Object (…
-
0
votes1
answer89
viewsInsert multiple objects with Dbal Doctrine
I am using Silex in conjunction with Doctrine dbal 2.5. How do I insert multiple objects into the bank with dbal Doctrine? Reading the documentation I didn’t find anything that made it possible,…
-
0
votes2
answers431
viewsCreating a website and back-end with PHP frameworks
I’m creating a website with back-end system. I have always done this process using only a framework like Laravel or Codeigniter, but talking to some people more experienced in this subject,…
-
0
votes0
answers248
viewsHow to Install API REST?
Is it good practice to use our API’s? ex: (http://localhost/api/v1/Resources) If so, what best practice is there for you? I’m using Apache server with Silex PHP micro framework, could I create a…
-
0
votes0
answers137
viewsHow to check if it has not already been inserted, in PDO?
I need to check if it has already been registered before entering it in the database, as you can see, I get an array of software and I need to validate all of them before inserting. Basically it…
-
0
votes1
answer118
viewsSilex can’t find the 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 {…