Created
August 24, 2017 19:34
-
-
Save johndewolf/e86c1a7e13eeed1119642e131be66359 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 | |
namespace craft\wufooformsubmission\controllers; | |
use craft\wufooformsubmission\Plugin; | |
use Craft; | |
use craft\web\Controller; | |
use craft\web\Request; | |
use yii\web\Response; | |
class PostController extends Controller | |
{ | |
protected $allowAnonymous = true; | |
public function init() | |
{ | |
$this->enableCsrfValidation = Plugin::getInstance()->getSettings()->enableCsrfProtection; | |
} | |
public function actionIndex() | |
{ | |
Craft::$app->controller->redirect('http://google.com'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment