Home > Backend Development > PHP Tutorial > Generate address in laravel template view

Generate address in laravel template view

WBOY
Release: 2016-07-29 09:12:03
Original
1201 people have browsed it

<code><span><<span>a</span><span>href</span>=<span>"/site/contact?id={!! 1 !!}&name={!! 2 !!}"</span>></span>fdsaf<span></<span>a</span>></span><span><<span>Br</span>></span><span><<span>a</span><span>href</span>=<span>"{!! url('site/contact',['id'=>1,'name'=>2]) !!}"</span>>test<span></<span>a</span>></span></code>
Copy after login

The generated address is as follows:

<code><span><<span>a</span><span>href</span>=<span>"/site/contact?id=1&amp;name=2"</span>></span>fdsaf<span></<span>a</span>></span><span><<span>br</span>></span><span><<span>a</span><span>href</span>=<span>"http://localhost:8000/site/contact/1/2"</span>></span>test<span></<span>a</span>></span></code>
Copy after login

The second parameter of url is not generated
http://localhost:8000/site/contact/id/1/name/2
At this time, it will not jump to http://localhost:8000/site/contact
This address requested data, but it was reported that it could not be found
Other references:
http://www.ekan001.com/articles/43

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above introduces the address generated in laravel template view, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template