草庐IT

parameter_name

全部标签

php - Symfony2 "Parameter ""for route ""must match "[^/]++"(""given) to generate a corresponding URL."

我有这个路线文件:indexRechercheZones:path:/gestionzonestechniquesdefaults:{_controller:MySpaceGestionEquipementsTechniquesBundle:GestionZonesTechniques:indexZonesTechnique}requirements:methods: GETmodifierZones:path:/gestionzonestechniques/modifier/{nom}defaults:{_controller:MySpaceGestionEquipementsTec

PhpStorm:获取 "Methods with the same name as their class will not be constructors"的代码检查警告

好吧,我终于切换到PHP7。我的代码有点旧,会被翻新。一些问题是:classMagicClassfunctionMagicClass(){//etc}在执行过程中给出弃用警告:Deprecated:MethodswiththesamenameastheirclasswillnotbeconstructorsinafutureversionofPHP;MagicClasshasadeprecatedconstructorin这很好:classMagicClassfunction__construct(){//etc}如何让PhpStorm代码检查来警告我当前代码库中的此类错误?

php - Nginx 为静态文件代理不正确的 fastcgi_script_name

server{listenloc.app:80;root/app/frontend/web;indexindex.php;location/{try_files$uri$uri//index.php$is_args$args;}location~^/admin{proxy_passhttp://127.0.0.1:81;}location~*\.php${#phpconf}}server{listen127.0.0.1:81;root/app/backend/web;indexindex.php;location/{try_files$uri$uri//index.php$is_arg

php - PDOException : SQLSTATE[IMSSP]: Tried to bind parameter number 65536. SQL Server 最多支持2100个参数

好吧,我遇到了一个非常奇怪的PDOException,我似乎无法理解。这是生成的异常:PDOException:SQLSTATE[IMSSP]:Triedtobindparameternumber65536.SQLServersupportsamaximumof2100parameters.inD:\Work\CEUR16-004\Project\www_root\includes\scripts\php\libCore\products.php:169Stacktrace:#0D:\Work\CEUR16-004\Project\www_root\includes\scripts\p

php - 创建 Google 联系人 --> 为什么只有 "NAME"没有插入新联系人?

这是我提出的要求:-//createnewentry$doc=newDOMDocument();$doc->formatOutput=true;$entry=$doc->createElement('atom:entry');$entry->setAttributeNS('http://www.w3.org/2000/xmlns/','xmlns:atom','http://www.w3.org/2005/Atom');$entry->setAttributeNS('http://www.w3.org/2000/xmlns/','xmlns:gd','http://schemas.go

php - Drupal - 如何使用 taxonomy_get_term_by_name 从名称中获取术语 ID

我尝试使用以下代码从术语中获取termId:$term=taxonomy_get_term_by_name($address_string);$termId=$term[0]->tid;有1个结果,但它显示为term[30]-所以上面的代码不起作用。我以为我可以通过查看第一个元素来访问术语数组-例如$term[0]我做错了什么?这是var_dump($term)的结果:array(size=1)30=>object(stdClass)[270]public'tid'=>string'30'(length=2)public'vid'=>string'4'(length=1)public'

php - 给出警告 : mysqli_free_result() expects parameter 1 to be mysqli_result, bool 值

这个问题在这里已经有了答案:Whattodowithmysqliproblems?Errorslikemysqli_fetch_array():Argument#1mustbeoftypemysqli_resultandsuch(1个回答)INSERTqueryproduces"Warning:mysqli_num_rows()expectsparameter1tobemysqli_result,booleangiven"(3个答案)关闭2年前。为什么我会收到此错误消息:Warning:mysqli_free_result()expectsparameter1tobemysqli_re

php - 拉维尔 5.4 : Exclude a route with parameters from CSRF verification

根据Laravel5.4Docs,您可以通过将路由添加到VerifyCsrfToken中间件的$except属性来从CSRF验证中排除路由。但是出于某种原因,除非从主路由本身中排除,否则无法使用确切的路由名称排除带有参数的路由。预期排除的路线:protected$except=['main/{id}/sub/*'];仅适用于:protected$except=['main/*'];如何从CSRF验证中排除带有参数的路由? 最佳答案 因为在引擎盖下这个功能使用request()->is()方法,也许这对你有用:protected$ex

PHP: print '<meta http-equiv="refresh"content ="0;url=' with URL parameters

如何使用URL参数创建此字符串?我想要的是这样的:print'';但这并没有正确地传递我的第二个参数。我得到一个“)”而不是一个b。我做错了什么?我试过&而不是&符号,但这也不起作用, 最佳答案 echo"";甚至header("Location:url=http://domain.com?a=1&b=2");因为你使用0作为延迟 关于PHP:print'<metahttp-equiv="refresh"content="0;url='withURLparameters,我们在St

PHP - $request->getPost ('first_name' )

publicfunctionprocess(Zend_Controller_Request_Abstract$request){$this->first_name=$this->sanitize($request->getPost('first_name'));....}我的问题是$request是类zend_controller_request_abstract的一个实例,但是getpost是类zend_controller_request_http中定义的一个函数,它扩展了zend_controller_request_abstract,那为什么$request直接调用getPos