Questions tagged as 'slim'

0
answers

Slim return on the same page as a POST post

I'm sending a post request to a URL, but I need to return a message or alert to the same page whether the ID is already registered or not. I already have the query and method to do this, however I am not able to send the return to the same p...
asked by 12.05.2017 / 17:53
0
answers

Slim Class Controller not found

I'm trying to make a model in MVC here, using some controllers. Follow my directories: Root / app / Controller / Padrao.php public / index.php composer.json Home My file index.php (Yes, to leave td mixed, then...
asked by 15.05.2017 / 01:26
0
answers

Doctrine, error generating proxy

I would like some help, I'm getting this error from time to time, I've researched a lot, but nothing to help me solve. As I said this error is not always returned. In this application I'm using slim 3 and doctrine.    Warning: rename (arq.php...
asked by 19.01.2017 / 01:27
0
answers

PHP opauth facebook

I am paying attention to facebook using opauth.org framework slim3. I'm not getting sex. I get the other data: test site Does anyone know if there is a syntax error? $gender = @$auth['raw']['gender']; The complete code: swi...
asked by 19.01.2017 / 00:29
0
answers

SlimFramework send json to url from another application

I'm developing a systems integration, and I'm using Slim frameWork I'm using an Action call Cron
asked by 27.12.2016 / 06:43
0
answers

PDO for DOCTRINE - Haversine formula

I need to transfer the query in PDO below to DOCTRINE: $query = $con->query('SELECT *, ( 6371 * acos( cos( radians('.$latitude.') ) * cos( radians( latitude ) ) * cos( radians( longitude ) - radians('.$longitude.') ) + sin( r...
asked by 19.11.2016 / 01:15
0
answers

Slim Framework status code 404

When making requests I get the following error.    XMLHttpRequest can not load link . Response for preflight has invalid HTTP status code 404 My .htaccess looks like this: link When I'm not inside my domain it works. So I dec...
asked by 11.07.2016 / 15:56
1
answer

Error 500 when using Slim Framework with Twig

I'm developing a simple website , with Slim Framework and Twig for engine , only returning error in the browser, this is the content of my file index.php (in the project root): require_once './vendor/autoload.php'; // Create contai...
asked by 26.11.2015 / 15:26
0
answers

Slim Frameworks variable between routes

How to pass result from one route to another in Slim Frameworks ex: $app->get('/rota1/:param', function($param) use ($app, $myclass) { // rotina que retornará um array $myArr = $myclass->method($param); }); $app->get('/rot...
asked by 23.10.2015 / 18:38
1
answer

Error importing class with use

The structure of my folders and files looks like this: WhatI'mtryingtodowithoutsuccessistousetheValidation.phpclassinUser.phpForthisIusedthecommanduseClasses\Validacao;User.php Validation.php ButIalwaysgetthiserror: I'm using the slim f...
asked by 05.06.2018 / 18:25