我是Aptana的新手,所以不要对所有行为进行排序。我有有效的PHP代码,但Aptana在两个括号上都抛出了语法错误:
public function addRecord($data)
{
$request = [
'action' => 'addrecord',
'data' => json_encode($data)
];
return $this->requestJson($request, 'POST');
}
我在这里没有看到什么?
似乎 Aptana 现在确实支持 PHP 5.4,而在原始帖子发布时则不支持。
Project->Properties->PHP Development-> Select PHP 5.4.x