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/organization/license
* @link https://www.flipboxfactory.com/software/organization/
*/
namespace flipbox\organization\modules\configuration\controllers\view;
* @author Flipbox Factory <[email protected]>
* @since 1.0.0
class GeneralController extends AbstractController
{
* The index view template path
const TEMPLATE_INDEX = AbstractController::TEMPLATE_BASE . DIRECTORY_SEPARATOR . 'general';
* Index
*
* @return string
public function actionIndex()
// Empty variables for template
$variables = [];
// apply base view variables
$this->baseVariables($variables);
// Full page form in the CP
$variables['fullPageForm'] = true;
return $this->renderTemplate(static::TEMPLATE_INDEX, $variables);
}
/*******************************************
* VARIABLES
*******************************************/
* @inheritdoc
protected function baseVariables(array &$variables = [])
// Get base variables
parent::baseVariables($variables);
// Path to controller actions
$variables['baseActionPath'] .= '/general';