Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

after() メソッド (PDF P.100) #3

Closed
ShingoFukuyama opened this issue Oct 7, 2012 · 2 comments
Closed

after() メソッド (PDF P.100) #3

ShingoFukuyama opened this issue Oct 7, 2012 · 2 comments

Comments

@ShingoFukuyama
Copy link

以下のようなエラーが出ます。

Fuel\Core\FuelException [ Error ]: Controller_SampleAfter::action_index() or the controller after() method must return a Response object.

COREPATH/classes/request.php @ line 447

return $response;の部分を
return parent::after($response);とすると通ります。

1.2から1.3に変更して使えなくなった、またはこちらが何か設定を間違えている可能性があるのでしょうか。宜しくお願いします。

@kenjis
Copy link
Owner

kenjis commented Oct 7, 2012

1.3 で再現しました。修正はご指摘の方法で正しいです。

1.3 で返り値が Response オブジェクトであることが徹底されたようです。

@kenjis
Copy link
Owner

kenjis commented Oct 7, 2012

264071e

にて対応いたしました。ご報告ありがとうございます。

@kenjis kenjis closed this as completed Oct 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants