Created
September 21, 2010 10:45
-
-
Save handlename/589524 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 myApiActions extends sfActions | |
{ | |
public function postExecute() | |
{ | |
parent::postExecute(); | |
// テンプレートを | |
// apps/api/modules/shared/templates/jsonSuccess.php | |
// に設定する。 | |
// myApiActionsを継承するすべてのアクションで | |
// このテンプレートが有効になる。 | |
$this->setTemplate('json', 'shared'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment