Questions tagged [Slim Framework] (59)

1
answer

How to set up the same routes for different roles in slim framework?

Hello. Doing a project on slim framework 3, there is quite a decent routing. The task of the next - we have 4 roles (admin, moderator, doctor, client) Within each project, the authorization gets into some characteristic of its role Dashboard with widgets. But I would like to route at the same time all roles were the same - ...
minnie.Morisset asked April 18th 20 at 13:15
1
answer

How to get the sample data from the regular slim-skeleton (slim framework)?

Want to learn micro framework Slim, set himself Slim-Skeleton, and would like to understand what, and what was done there (in the demo data). Please tell me where to read about it, or who can explain what demo files - what is the purpose of why they are in these folders ?
aniya_Sipes asked April 7th 20 at 11:45
1
answer

How to organize mvc project (for example slim framework)?

Installed the Slim framework under of. documentation composer set a standard skeleton. In the end, on the server (in the DocumentRoot), a new structure was created: app/ vendor/ public/.htpaccess public/index.php ... It turns out, when you try to open the website in your browser, the web server does not know what the ro...
Jed_Armstrong asked April 7th 20 at 11:33
4
answers

Slim or Symfony framework?

Developing in php for over 7 years. Ready frameworks never used, with the exception of the individual components (or libraries monolog, guzzlehttp etc.). Finally I would like to start to learn a framework, so out of the box met the right architecture, routers, etc. I'm more pleasant symfony, but because of its bulkiness (a ...
diamond.Baumbach22 asked April 4th 20 at 01:17
1
answer

How to transfer a Symfony project from one site to another?

The task of moving a website written in Slim to another hosting. The backup files look like this: Poured it all on a new site in the public_html folder. Gave 403 error. She deleted everything in the folder public_html on the server poured only the files in the public folder, and other files filled to the level above (i.e. i...
lesley asked April 3rd 20 at 23:32
1
answer

Where is the best place to place the initialization files of third-party libraries in slim framework or other microframework?

In General, the question is theoretical in nature, from the series "is a bunch of solutions, what is the best". I invite you to dialogue not busy people. Essence. The sounds of the slim framework, there is no sewn validation, consider to use any library. Looks like the famous library vlucas/valitron Reached the point of cus...
shanny_Langwor asked April 2nd 20 at 16:14
1
answer

How to write redirect to 404 page?

How to write redirect to 404 page? I use cms on files. The standard redirection is not working. (An ErrorDocument 404 RewriteEngine on /index.php) place 404 produces the following (Photo)
Samson_Mills asked March 31st 20 at 21:56
0
answer

Why 404 error when processing forms on the Slim?

Hello. Somehow, when you submit a form on a Slim 404 error. Tell me where might be wrong, please.<form action="/auth" method="post" > the <div> <label> Your username <input type="text" name="user[login]" value="<?= htmlspecialchars($user['login'] ?? ") ?>" required> </label> </div>...
Glenda asked March 27th 20 at 13:03
2
answers

How to connect router Vue and Slim?

Greetings to all! Write the app on the vue and slim, now I want to add routing to the client using Vue Router. The problem here in what: there is already a api written in slim, all requests to it are passed into this file, here's a super short example$app = new \Slim\App; /* --------- statistics --------- */ $app->gro...
Molly.Effertz20 asked March 25th 20 at 12:23
0
answer

How to work with slim framework from vue?

Hello! The question is probably stupid, but can't figure out how to get data from slim of vue. For example, there is a code file index.php in the server folder<?php use \Psr\Http\Message\ServerRequestInterface as Request; use \Psr\Http\Message\ResponseInterface as Response; require '../../vendor/autoload.php'; $app = ...
Darian_Barte asked March 24th 20 at 15:07