我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何获取日期数组作为POST参数

it looks like it is not possible to have array of dates as a parameter, like:

@param array $dates Dates array {@type date} {@from body}

Is there any way to make Restler to validate input of array of dates, for example:

{
   "dates": ["2013-01-01", "2013-01-02"]
}

Right now I am getting: Class 'date' not found in ...

This works just fine with the latest in master branch! Just added the code to test it in Type class

Check it out here http://restler3.luracast.com/tests/param/explorer/index.html#!/type/createDates_post

近期文章

  • Magento:致命的错误问题
  • 在结帐购物车Magento上传
  • codeigniter目录映射助手 - 文件夹权限
  • 数据库类方法不返回结果
  • 强制子类初始化受保护的属性
  • 检索所有帖子的最后修订版
  • php调用函数与哈希表之类的参数
  • 简单数组到关联数组,基于'目录树',就像第一个数组的值一样
  • 使用通配符调用爆炸数组中的所有字符串编号
  • 使用jQuery UI Tabs拆分表单会影响将表单发布到PHP吗?
  • 条件正则表达式与文字结尾,只有在条件的某些部分匹配时才匹配
  • Wordpress中的PHP结构
  • 如何复制qq群发来的消息
  • Charset错误,php smarty mysql
  • mySQL加入表没有重复[关闭]
  • 使用JavaScript发送ID
  • 如何将表单从已加载的表单提交到主页面?
  • 如何允许用户更改窗口小部件标题颜色?
  • 将多个行从php表单插入数据库
  • @Route(defaults = {“_ format”=“json”}返回HTML

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华