thinkphp query Language with coherent operation can be very good to solve the complex business logic requirements, this article we first to in-depth understanding of the framework of the query language.
1. Query Language Introduction
thinkphp
1. Module URL usage, typically used to parse a GET request.parse: [Function:urlparse]resolve: [Function:urlresolve]resolveobject: [Function:urlresolveobject] Format: [Function:urlformat]URL: [Function:url]1.1 Url.parse (str), this method is
[Original address] ASP. net mvc Framework (Part 2): URL Routing[Original article publication date] Monday, December 03,200 AM
Last month, I published the first article in my series of posts, which will discuss the new ASP. NET MVC framework we are
This is a creation in
Article, where the information may have evolved or changed.
Package URL
Import "Net/url"
The URL package resolves the URL and implements the query's escape code, see RFC 3986.
Index
Func Queryescape (s string) string
In the previous article, we learned the basic data CURD method, but in more cases, due to the difference in business logic, CURD operations are often not that simple, especially under complicated business logic, this is also a shortcoming of the
Next, we'll take a look at the second topic of Web Programming on Java: URL processing. The URL (uniform Resource Locator) Chinese name is a Uniform Resource locator, sometimes also known as the Web address. Represents a resource on the Internet,
In the previous article we have mastered the basic data curd method, but in more cases, due to the differences in business logic, curd operations are often not so simple, especially complex business logic below, this is the ActiveRecord mode of
First, PHP gets the URL of the current page:
Copy the Code code as follows:
Get the current script URLfunction Getcururl (){if (!empty ($_server["Request_uri")){$scriptName = $_server["Request_uri"];$nowurl = $scriptName;}Else{$scriptName =
A URL string is a structured string that consists of several meaningful parts. We will inevitably use one of these parts in our work, the most primitive method of using string interception and regular matching is not easy and beautiful, so we
The first is PHP to get the current page URL:
Copy Code code as follows:
Get the current script URL
function Getcururl ()
{
if (!empty ($_server["Request_uri"]))
{
$scriptName = $_server["Request_uri"];
$nowurl =
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.