Questions tagged as 'rotas'

1
answer

Validating routes in Lumen

In Laravel I have for example: Route::get( '/produtos/mostra/{id}', 'ProdutoController@mostra' )->where('id', '[0-9]+'); How would this type of validation be done in Lumen ? Since a route is caused by $app : $app->get...
asked by 30.12.2016 / 16:23
1
answer

Treat request redirected by Htaccess

I'm studying routing, trying to (re) create a routing solution of mine. I have always used the following .htaccess to redirect my requests: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d Rewr...
asked by 20.11.2015 / 17:25
2
answers

Rails performing request XHR when loading pages

I've noticed that in every page / route exchange, Rails * makes a new request Ajax to fetch this new data (HTML), and thus page exchange. I did a lot of research but the closest I got was to Embedded Ruby ( erb ). If this is really...
asked by 11.07.2016 / 19:51
0
answers

How to get traffic information in real time, like Waze? [closed]

I can enable traffic density on the entire map using setTrafficEnabled(true) , as shown here: I would like to provide other information (accidents, blitz, etc.) in GoogleMaps v2 in the same way as I get the distance and the estimate...
asked by 16.09.2015 / 14:48
1
answer

Problem with Custom Routes and HttpHandler in ASP.NET MVC

In a project I'm working on, I wrote a HttpHandler to get an image instead of a View , something like this: using System; using System.Web; using System.Web.Routing; using MeuProjeto.Data; using MeuProjeto.Infrastructure; namespace Me...
asked by 16.04.2014 / 17:38
3
answers

Routes accessible only to users logged in to Laravel?

Can anyone give me a hint on how to create routes that can be accessed only by users who are authenticated using Laravel ? For example , routes that relate to sharing, editing, deleting, and viewing publications are accessible only to...
asked by 24.08.2017 / 23:41
1
answer

Doubts about routes JS angular x ASP.NET MVC

I would like to remedy some doubts about Angular JS vs. ASP.NET MVC. I created an empty ASP.NET MVC application that will work with WEB API, configured all my routes with AngularJS, created an html page and its controllers, all with angularJS...
asked by 23.11.2017 / 12:26
2
answers

CodeIgniter - Friendly URL

I'm trying to use the CodeIgnoter framework. but I can not get past this: http://localhost:8087/CodeIgniter/index.php/usuario/home for this: http://localhost:8087/CodeIgniter/usuario/home It always appears: The requested URL /CodeIgn...
asked by 18.09.2015 / 04:54
1
answer

How to insert a file into an array

I'm having a hard time and I could not solve it. I have a configuration file in this file I have an array and several arrays inside it and one of those is my array of routes. What I need to do is to include a file inside that array of routes bec...
asked by 08.09.2016 / 19:23
1
answer

NoMethodError in Home # index

Next, I received a challenge to create a login page, using devise and with the logged in user, so that he could create a to-do list. The login I could do and it works well, already creating the part of the posts is being the biggest problem....
asked by 01.08.2014 / 05:21