symfony报错:Declaration of testAction::execute() must be compatible with sfComponent::execute($request

来源:互联网 发布:拳皇97java源代码 编辑:程序博客网 时间:2024/06/05 10:22
This is since 1.1 or greater version of symfony:
class testAction extends sfAction{public function execute() {}}

The above code will work fine for symfony 1.0, but for the versions above it; it won’t work.


Below given is the change you need to implement to make it work
class testAction extends sfAction{public function execute($request) {}}

0 0
原创粉丝点击