cakephp分页链接#hash(cakephp pagination link with #hash)
我有一个带有分页助手的cakephp视图。 我希望分页链接以#hash这样结束'http:// localhost:8888 / uk / brand / sort:name / direction:desc#dist'我找不到在cakephp 2.0中添加它的选项API。
<?php echo $this->Paginator->sort('name');?>
I have a cakephp view with a paginating helper. I want the pagination link to end with a #hash like this 'http://localhost:8888/uk/brand/sort:name/direction:desc#dist' I can't find the option to add this in the cakephp 2.0 api.
<?php echo $this->Paginator->sort('name');?>
原文:https://stackoverflow.com/questions/10318427
最满意答案
HTTP 500错误意味着问题不会发生在客户端python脚本上,而是在服务器端。
检查服务器端代码,可能只从GET读取数据,而不是POST。
The HTTP 500 error means that the problem doesn't occur on the client-side python script, but on the server side.
Check your server side code, maybe it reads data only from GET, not POST.
相关问答
更多-
Python POST无法正常工作(Python POST not working)[2022-03-20]
HTTP 500错误意味着问题不会发生在客户端python脚本上,而是在服务器端。 检查服务器端代码,可能只从GET读取数据,而不是POST。 The HTTP 500 error means that the problem doesn't occur on the client-side python script, but on the server side. Check your server side code, maybe it reads data only from GET, not PO ... -
如何通过python设置php的$ _GET和$ _POST变量?(How to set $_GET and $_POST variables of php through python?)[2022-07-11]
尝试这个: $ php -f index.php foo=bar 并在索引php做: parse_str(implode('&', array_slice($argv, 1)), $_GET); 之后你会得到这个结果: echo $_GET['foo'];// prints 'bar' 请阅读页面末尾的示例 Try this: $ php -f index.php foo=bar And in index php do: parse_str(implode('&', array_slice($arg ... -
您的POST请求在URL末尾有一个额外的斜杠。 这里是curl命令: $ curl -X POST 0.0.0.0:5000/puppies Creating A New Puppy $ curl -X POST 0.0.0.0:5000/puppies/
404 Not Found Not Found
The requested URL wa ...
-
jquery post url参数与python的比较无法正常工作(jquery post url parameters comparison with python not working)[2022-02-05]
有一点你最好知道! Tornado是一个基于MVC的框架,可以让你掌握很多东西。 因此,您可以使用查询字符串来设置URL模式。 这意味着您不需要使用self.get_query_argument()或self.get_argument()获取值。 对于URL: application = tornado.web.Application([ (r'^(?i)/leave_action/([\w+^/])/([\w+^/])[/]?$', YourLeaveActionHandler) ], **set ... -
您需要POST数据 您需要知道正确的URL,检查html源代码,在这种情况下: http://upload.bayimg.com/upload : http://upload.bayimg.com/upload 您需要读取文件的内容而不是仅传递文件名 您可能希望使用请求轻松完成。 You need to POST the data You need to know the right url, check the html source, in this case:http://upload.bayimg. ...
-
试试这个吧。 NSMutableString* postString9 = [base mutableCopy];//i dont know if you want to change the base string so I decided not to in this example. [postString stringByAppendingString: @"?latitude="]; [postString stringByAppendingString:latitude1]; [post ...
-
以原始格式发布数据。 payload = "username=;password=;" s1 = requests.post( url, headers={"content-type":"application/x-www-form-urlencoded"}, data=payload) FWIW,您可以点击Postman右上角“ 保存”按钮下面的代码,以查看几种语言的代码以满足您的要求。 Post data in raw format. payload = "username ...
-
Python'请求'模块中的POST请求无法正常工作(POST Request in Python 'requests' module not working properly)[2022-02-25]
这些是HTTP标头; 引用API文档 : 通过使用身份验证令牌来管理对D&B Direct服务的安全访问,可以通过向身份验证服务URL发送HTTP POST请求, 在HTTP头中传递有效的用户名和密码来获取身份验证令牌。 添加它们如下: r = requests.post( 'https://maxcvservices.dnb.com/rest/Authentication', headers={'x-dnb-user': userid, 'x-dnb-pwd': password}) 这 ... -
你的数据变量不正确。 试试以下内容 >>> import requests >>> url = "www.example.com/coords.php" >>> data = {'data':'This is a string'} >>> r = requests.post(url, data) >>> r.content b'N/A' Your data variable is not correct. Try following: >>> import requests >>> url ...
-
通过ajax调用将数据发送到python脚本: var jqXHR = $.ajax({ type: "GET", dataType: "json", url: "script.py", async: false, data: {param: data} }); return jqXHR.responseText; 在Python脚本中,您可以通过print函数返回一个值。 只需pr ...