Questions tagged as 'silex'

2
answers

Why is the path not recognized by Silex when there is a slash "/" at the end of the requested url?

I'm starting my MVC studies with silex today, but I'm having trouble creating routes by accessing addresses containing a slash at the end. Example: http://site.com.br/home/ I have already been able to access the url only in the http://si...
asked by 31.10.2014 / 20:23
2
answers

Best 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 small template for the answer, I do not know if it...
asked by 16.01.2017 / 14:59
1
answer

Working with Silex sessions

Good evening, I have a question on how to add, change, and delete data in the Silex Session. His API documentation is very simple and unexplained. It is the following: I need to create a session containing an array of values I did so to...
asked by 06.02.2015 / 00:08
3
answers

Upload file with parameters in Silex with Angular-File-Upload

I'm doing a job 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: self.salvarAnexo = function (id, descricao, a...
asked by 12.08.2016 / 01:02
0
answers

Error 404 with Silex

Talk, I'm developing a Web system, I do not know how to handle web programming, but come on: So all my controllers, index, htaccess, td right, so much that the project is working normally if I run it localhost through phpStorm (that codezinho...
asked by 14.12.2015 / 01:17
1
answer

What is the overhead of using Doctrine?

A few days ago I've been arguing with some co-workers about performance and high availability. In the middle of the discussion one of the points raised was that when reaching a certain number of requests, Doctrine ORM becomes a bottleneck i...
asked by 15.02.2017 / 18:03
2
answers

Data received via Request using Doctrine need to be handled?

I'm developing a new project, it's the first time I'm using Doctrine with Silex and I'm in doubt about receiving information through forms. I get data from forms through Request Symfony ( Symfony\Component\Ht...
asked by 25.01.2017 / 14:38
1
answer

Doctrine ORM returning array [0] in find

I have a question .. I implemented Doctrine with Silex, I created the entity, the repository and the service, but at the time I do a search with findByEmail () for example, to display the result I have to use $ result [0] -> getNome () . Would t...
asked by 16.01.2017 / 22:25
1
answer

Is there any way to use Laravel Eloquent in the Silex microframework?

I'm refactoring a structure of a site and moving on to the Silex microframework. I would like to know if there is any way to use the Laravel Eloquent ORM to connect to the database. I read in the documentation that has how to use Doctrine,...
asked by 17.01.2017 / 11:35
2
answers

Running Silex on the shared provider

I just uploaded a site to Locaweb in a simple and shared Linux hosting, but for a change it did not work. I suppose this is because the index is not in the root of the site, but in the public folder. Question: How do I make the index w...
asked by 24.02.2015 / 23:47