Skip to content

Instantly share code, notes, and snippets.

@johndewolf
Created August 24, 2017 19:34
Show Gist options
  • Save johndewolf/e86c1a7e13eeed1119642e131be66359 to your computer and use it in GitHub Desktop.
Save johndewolf/e86c1a7e13eeed1119642e131be66359 to your computer and use it in GitHub Desktop.
<?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