Created
September 21, 2010 10:51
-
-
Save handlename/589533 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class kayacActions extends sfActions | |
{ | |
public function executeError(sfWebRequest $request) | |
{ | |
// 問答無用でエラーレスポンス | |
$this->forwardError('500', 'エラーメッセージ'); | |
} | |
public function executeErrorIf(sfWebRequest $request) | |
{ | |
// 条件が真ならエラーレスポンス | |
$this->forwardError(true, '500', 'エラーメッセージ'); | |
} | |
public function executeError(sfWebRequest $request) | |
{ | |
// 条件が偽ならエラーレスポンス | |
$this->forwardError(false, '500', 'エラーメッセージ'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment