我有一个问题与restler,虽然我注册了以下格式:
$r->setSupportedFormats('JsonFormat','XmlFormat','YamlFormat','PlistFormat','AmfFormat');
JSON或xml以外的格式不能使用后缀
路由。 /path/call.{suffix}
不工作除了。xml和。json,任何想法?
使用Restler v3 RC3
只有JsonFormat和XmlFormat可以开箱使用,其余的格式都有外部依赖关系,需要运行make composer-install
,如http://restler3.luracast.com在安装