Questions tagged as 'slim'

1
answer

Perfomance Restkit with AFNetworking

I have created a reserver using the Slim Framework (PHP), connecting to a MySQL DB. You are on a dedicated server with moderate performance, ie the response is very fast. But I did a test app in IOS where I consult this api and mount a table...
asked by 18.08.2014 / 19:42
0
answers

Changing the project root directory through the .htaccess file

I have a server with a presentation portfolio done in html, css and javascript. All files in this portfolio are in the public_html folder and can be accessed by the server address 'server.com/'. However I developed a system in PHP and put it in...
asked by 20.11.2018 / 02:59
0
answers

Slim Framework and doctrine, problem to generate json

I'm building a API where I register animals and colors and get animals in return, I'm using Doctrine to treat entities and I've created a many-to-many relationship between animals and colors. /** * @Entity @Table(name="Animais")...
asked by 27.11.2018 / 19:17
0
answers

Decimal type Phinx Slim Framework

How can I create a decimal type in Phinx Migration, see how it is currently: $oss->addColumn('valor','decimal', ['limit' => 10.2]); I have tried in many ways and I can not, it always generates only 10.0.     
asked by 18.09.2018 / 04:13
0
answers

Testing Magical Methods in PHP UNIT

Hello. I need to test the magic methods in PHP UNIT. I'm using the Slim Framework framework What are they? __set() __get() __construct() __invoke() handle()     
asked by 14.08.2018 / 18:17
0
answers

failure url rewrite slim iis 10

I'm trying to follow the slim slim tutorial, but it always gives page not found when access localhost: 8080 / hello / alan. I'm using iis 10. I installed url rewrite 2.0, and my web.config looks like this: <?xml version="1.0" encoding="...
asked by 10.07.2018 / 12:53
1
answer

Authentication external sites

I'm using JWT to do access authentication. When I try to get a GET request from outside my system, it displays this message: codesnippetwhereImaketherequest(js):[...]varcep=this.soNumero(this.state.cep);varcepUrl='https://viacep.com.br/ws/'+...
asked by 14.06.2018 / 14:36
1
answer

View data is disappearing in a certain time

It's the following, so I realized the whole project follows the MVC Standard. I just have a big problem. The view of orders there is a simple refresh of 30 seconds, searching for new orders. So good! The problem happens every day at 9:00 PM,...
asked by 19.02.2018 / 03:16
0
answers

How to add Style Sheet in a Slim Framework Project

As I can set up a project I can add css, js, and bootstrap files in the slim framework, I used the slim / skeleton project, but I can not get my css and js files without the need to add a long ex (c : \ xampp \ htdocs \ project \ template \ asse...
asked by 07.02.2018 / 23:20
0
answers

Send photo and json in the same request - Postman

I'm having trouble sending a photo and a json by postman on the same request. Ineedtosendtheprofilepictureoftheuserandatthesametimereceiveajsonwiththedataofthesame.//InstânciadaentidadeLogin$login=newLogin();//recuperandooparâmetroobjetologindo...
asked by 09.10.2017 / 17:39