Questions tagged as 'silex'

2
answers

Creation of a website and a backend with PHP frameworks [closed]

I'm creating a website with a back-end system. I have always done this process using only a framework like Laravel or Codeigniter, but talking to some more experienced people on this subject, they recommended using Codeigniter or Laravel only...
asked by 22.03.2016 / 19:08
1
answer

Array php loop [closed]

For the array: Array ( [45] => Array ( [car] => stdClass Object ( [consortiums] => stdClass Object ( ), [92] => Array ( [ca...
asked by 18.06.2015 / 15:37
1
answer

Insert multiple objects with Doctrine Dbal

I'm using silex in conjunction with doctrine dbal 2.5. How do I insert multiple objects into the database with Doctrine dbal? Reading the documentation I did not find anything that would allow this, is there any way to do this?     
asked by 23.07.2015 / 20:54
1
answer

Get data on a PUT route using silex

I would like to know how you can get data passed to a put route using silex. For example: $app->put('foo/{id}', function(Request $request, $id) use ($app){ return var_dump($request->get('bar')); //return null }); This returns...
asked by 28.04.2015 / 13:37
2
answers

Doubts in the Middleware Before of the Silex ControllerProvider

Oops, everyone, Personal I have several classes that follow this structure: class TestController implements ControllerProviderInterface { public function connect(Application $app) { $adm = $app['controllers_factory']; $adm->before(...
asked by 13.02.2015 / 00:25
0
answers

How to version REST API?

Is it good practice to version our API's? ex: ( link ) If yes, what best practice to version? I am using Apache server with Silex micro framework PHP, could I create a folder / directory within the app with name of "v1" or should this be handled...
asked by 23.11.2016 / 14:35
0
answers

How to check if it has not already been inserted in PDO?

I need to check if it was already registered before entering the database, as you can see, I get an array of software and I need to validate all before inserting. Basically it would include this line $dbh->prepare("select 1 from softwares...
asked by 16.12.2016 / 18:28