for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @copyright Copyright (c) Flipbox Digital Limited
* @license https://flipboxfactory.com/software/hubspot/license
* @link https://www.flipboxfactory.com/software/hubspot/
*/
namespace flipbox\craft\hubspot\cp\controllers\settings\view;
use flipbox\craft\hubspot\records\Connection;
use flipbox\craft\hubspot\web\assets\base\Base;
use yii\web\Response;
* @author Flipbox Factory <[email protected]>
* @since 1.0.0
class GeneralController extends AbstractController
{
* The template base path
const TEMPLATE_BASE = parent::TEMPLATE_BASE . '/general';
* The index view template path
const TEMPLATE_INDEX = self::TEMPLATE_BASE . '/index';
* @return Response
* @throws \yii\base\InvalidConfigException
public function actionIndex(): Response
$variables = [];
$this->baseVariables($variables);
$this->view->registerAssetBundle(Base::class);
$variables['connections'] = Connection::find()->all();
$variables['fullPageForm'] = true;
return $this->renderTemplate(
static::TEMPLATE_INDEX,
$variables
);
}
/*******************************************
* BASE PATHS
*******************************************/
* @return string
protected function getBaseActionPath(): string
return parent::getBaseActionPath() . '/general';