In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article introduces the relevant knowledge of "how to understand thinkphp letter function". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1 、
/ * * get template file format resources: / / module @ theme / controller / operation * @ param string $template template resource address * @ param string $layer view layer (directory) name * @ return string * / T ($template='',$layer='')
2 、
/ * * getting input parameters supports filtering and default values * usage: * * I ('id',0); get id parameters to automatically judge get or post * I (' post.name','','htmlspecialchars'); get $_ POST ['name'] * I (' get.') Get the name of the $_ GET * * @ param string $name variable to support the specified type * @ param mixed $default when the default value * @ param mixed $filter parameter filtering method * @ param mixed $datas extra data source * @ return mixed * / I ($name,$default='',$filter=null,$datas=null)
3 、
/ * * set and obtain statistics * usage: * * N ('db',1); / / record the number of database operations * N (' read',1); / / record the number of reads * echo N ('db'); / / get all the operations of the current page database * echo N (' read') / / get the number of times the current page is read * * @ param string $key identification location * @ param integer $step step value * @ param boolean $save whether to save the result * @ return mixed * / N ($key, $step=0,$save=false)
4 、
/ * instantiate model class format [resource: / /] [module /] model * @ param string $name resource address * @ param string $layer model layer name * @ return Think\ Model * / D ($name='',$layer='')
5 、
/ * * instantiating a Model * @ param string $name Model name without a model file supports specifying the underlying model such as the MongoModel:User * @ param string $tablePrefix table prefix * @ param mixed $connection database connection information * @ return Think\ Model * / M ($name='', $tablePrefix='',$connection='')
6 、
/ * instantiate multilayer controller format: [resource: / /] [module /] controller * @ param string $name resource address * @ param string $layer control layer name * @ param integer $level controller hierarchy * @ return Think\ Controller | false * / A ($name,$layer='' $level=0) 7, / * remote call controller operation method URL parameter format [resource: / /] [module /] controller / operation * @ param string $url call address * @ param string | array $vars call parameter support string and array * @ param string $layer control layer name to be called * @ return mixed * / R ($url,$vars=array (), $layer='')
8 、
/ * * URL assembly supports different URL patterns * @ param string $url URL expressions in the format:'[module / controller / operation # anchor @ domain name]? Parameter 1 = value 1 & parameter 2 = value 2.. values * @ param string | the parameter passed in array $vars. The array and string * @ param string | boolean $suffix pseudo-static suffix are supported. The default value is true, which indicates whether the configuration value * @ param boolean $domain displays the domain name * @ return string*/ U ($url='',$vars='',$suffix=true,$domain=false). Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.