Questions tagged as 'slimframework'

1
answer

Request ajax with Slim

I have a form and the following requisition: jQuery('#cadastro').submit(function() { var dados = jQuery(this).serialize(); jQuery.ajax({ type: "POST", url: "/cadastrar", data: dados,...
asked by 11.03.2018 / 04:09
1
answer

Web service for web / android

I have the following web service $app->get('/alunos', function(){ require_once('db/config.php'); foreach ($db->alunos() ->order("nome") as $row){ $data[]=$row; } echo json_encode($data, JSON_UNESCAPED_UNICO...
asked by 07.01.2018 / 13:43
1
answer

How to perform Api Deploy with Composer / SlimFramework

I have an api running on localhost how do I send it to my ftp? I have these folders, I downloaded with composer the slimframwork just send everything?     
asked by 05.12.2017 / 17:23
1
answer

Email form does not work on smartphones only!

Hello everyone! All right? This is my first post here. I have a silly problem, but there are three, four days! I started to develop recently and this is my first commercial project. It's pretty much done, but my email form is not working when th...
asked by 19.11.2017 / 19:42
1
answer

Problem with json slim framework

I am doing an api to do the integration of two different systems, the system sends me the following json: cJson = [{"TESTE": "1"}] I was 3 days with a problem because I was not able to get the json that the other system sent me via post wit...
asked by 21.06.2017 / 17:16
1
answer

Slim framework error: call require '../Slim/Slim/Slim.php';

Error creating when calling function Slim.php Code: <?php require '../Slim/Slim/Slim.php'; \Slim\Slim::registerAutoloader(); $app = new \Slim\Slim(); $app->response()->header('Content-Type', 'application/json;char...
asked by 07.06.2017 / 20:55
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

Slim Framework is not recognizing saved sessions

Well, my directory in the slim framework was standard .. /public /vendor /src /cache /app between the other folders .. and within / public The index.php was calling the other files and folder normally .. require __DIR__ . '/../ven...
asked by 08.09.2018 / 05:07
0
answers

Comparing two tables in MYSQL and limiting the result based on the current date

I am comparing the data of these two tables pontos and pontos_view in practice, in the pontos table there is a list of tasks that when executed by the user, saved in pontos_view thus causing the user to not execute th...
asked by 08.09.2018 / 21:03